portrait

("portrait", (Z.Orientation) => void): this;

Emitted when the device is in portrait orientation, 90 degrees clockwise from landscape.

Returns

this

Handler Function

When the portrait event is fired, attached handler functions are called with a single argument, a Z.Orientation value.

Example

symbol.nodes.accelerometer.on("portrait", () => {
    // Runs when portrait occurs on the accelerometer node

});
zapcode branded_zapcode i