Skip to content

portrait

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

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

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

this

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

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