Protected
constructorSet your lens to handle touches on the screen, preventing default Snapchat touch behavior from occuring. Useful for enabling full screen touches without any touch components. It is similar to creating a plane the size of the screen in front of the camera.
The current touch mask.
Returns a copy of currentMask
with the newException
flag set to true.
Allow or stop allowing a certain TouchType
to pass through your lens. Useful for allowing Snapchat to handle certain TouchType
, e.g. allowing TouchTypeDoubleTap
to flip the camera.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
This provider is returned by
global.touchSystem
and allows your lens to handle any touches on the screen, and optionally let certain touch types to pass through (let Snapchat handle the touch).Possible TouchType exception values:
"TouchTypeNone" "TouchTypeTouch" "TouchTypeTap" "TouchTypeDoubleTap" "TouchTypeScale" "TouchTypePan" "TouchTypeSwipe"
Example