Search results for "event"

Adding a Calendar Event

The Z.calendar object can be used to add events to the user's calendar. To find out how visit the Z.Calendar reference article.

Frequency

enum Frequency { "daily", "weekly", "monthly", "yearly" } Indicates how regularly a recurring event occurs. Member List Member Description daily Event occurs once a day. weekly Event occurs once a week. monthly Event occurs once a month.

EntryRecurrence

: number[] } A set of options surrounding the recurrence of an event. Variables Variable Type Description frequency Z.Calendar.Frequency The frequency at which an event should occur. occurrences number How many times the event should occur.

Entry

: EntryRecurrence } An event entry to add to the calendar. Variables Variable Type Description title string The title of the event. start JavaScript Date object The start time of the event. end JavaScript Date object The end time of the event.

Face Tracking Events

Anchor Group specific Events Event Description onAnchorVisible Event which is emitted when an anchor (face) becomes visible in a camera frame.

one(...)

one(evt : string, func : (...params : any[]) => void) : this; Attaches a single-use handler function to an event. The handler will only be called the first time the event is triggered.

on(...)

on(evt : string, func : (...params : any[]) => void) : this; Attaches a handler function to an event. Parameters Parameter Type Description evt string The name of the event to attach to.

off(...)

off(evt : string, func : (...params : any[]) => void) : this; Removes a handler function from an event. Parameters Parameter Type Description evt string The name of the event with the attached function.

emit(...)

emit(evt : string, ...params : any[]) : this; Calls the handler functions attached to an event. Parameters Parameter Type Description evt string The name of the event.

Creating Buttons

Buttons pointerdown Event The easiest way to create a button in ZapWorks Studio is to use the pointerdown event emitted by plane nodes.

add(...)

Examples Single Event Z.calendar.add({ title: "Zappar's 10-year Anniversary Party", start: new Date(2021, 3, 1, 19, 0, 0), end: new Date(2021, 3, 2, 2, 0, 0), location: "London", notes: "BYOB" }); Recurring Event Z.calendar.add({ title: "Cassini

hidden

It is the responsibility of a function attached to the root node's hide event to emit this on the symbol. Returns this Handler Function When the hidden event is fired, attached handler functions are called with no arguments. Related Z.Base.on(...)

notactive

This is called immediately before any active event is emitted on the new active element. Returns this Handler Function When the notactive event is fired, attached handler functions are called with no parameters. Related active Z.Base.on(...)

active

This is called immediately after any notactive event is emitted on the previously active element. Returns this Handler Function When the active event is fired, attached handler functions are called with no parameters. Related notactive Z.Base.on(...)

Getting Keyboard Input

The second step is to register event handlers that will be fired when the user has finished entering their text. The confirm event is fired when they tap the "OK" button.

Buttons and Interactivity

Action indicator Events The following table lists the events available to each node type, along with a description of the event itself. Node Type Event Description Accelerometer Landscape The device is in the default landscape orientation.

Intersection Events

An intersection event is an event that is fired as a result of a Z.Raycaster node intersecting with a Z.Object node that both: includes the same tag value as the Raycaster node's colliderTag value, and is within the colliderLimit of the Raycaster node.

PointerPresentEvent

Variables Variable Type Description screenPosition number[] An array returning the screen position of the pointer event. localPosition number[] An array returning the local position of the pointer event.

triggers

Returns this Handler Function When the triggers event is fired, attached handler functions are called with a single argument, an array of TriggerPresentEvents.

intersections

Returns this Handler Function When the intersections event is fired, attached handler functions are called with a single argument, an array of IntersectionEvents.

zapcode branded_zapcode i