Skip to main content

ManipulateType

Enum

Enum values specifying each type of manipulation.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v272

Enum values specifying each type of manipulation. See ManipulateComponent.

Index

Enumeration Members

Example

// Disables the scale functionality on a manipulate component when a user taps
//@input Component.ManipulateComponent manip

function onTap(eventData)
{
script.manip.enableManipulateType(ManipulateType.Scale, false);
}
var tapEvent = script.createEvent("TapEvent");
tapEvent.bind(onTap);

Enumeration Members

Drag

Drag: number

The object can be moved by touching and dragging.

Since

Lens Scripting Version 272


Scale

Scale: number

The object can be scaled by pinching with two fingers.

Since

Lens Scripting Version 272


Swivel

Swivel: number

The object can be rotated by swiveling with two fingers.

Since

Lens Scripting Version 272