Lens Scripting API

    Enumeration ScreenRegionType

    Types of screen regions that can be used with ScreenRegionComponent.

    // @input Component.ScreenRegionComponent screenRegionComponent

    script.screenRegionComponent.region = ScreenRegionType.Capture;
    Index

    Enumeration Members

    Capture: number

    The screen area shown to the user when recording. On some devices, this region is a subset of FullFrame region.

    FullFrame: number

    The entire screen area of the device.

    Preview: number

    The screen area shown to the user when previewing a Snap. On some devices, this region is a subset of Capture region.

    RoundButton: number

    The screen area where the round "Snap" button is drawn.

    SafeRender: number

    A screen area that will be visible on all devices and won't overlap Snapchat UI. Safe area to place any UI elements.

    MMNEPVFCICPMFPCPTTAAATR