Lens Scripting API

    Enumeration LocationProximityStatus

    Used by DeviceLocationTrackingComponent to indicate the user's distance from the landmarker location. See the Landmarker guide for more information.

    //@input Component.DeviceLocationTrackingComponent locationTrackingComponent

    if (script.locationTrackingComponent.locationProximityStatus == LocationProximityStatus.WithinRange) {
    print("user is in range to see the landmarker");
    } else {
    print("user's location is unknown or user is too far away");
    }
    Index

    Enumeration Members

    Enumeration Members

    OutOfRange: number

    User is too far away from the landmarker location to track it.

    Unknown: number

    User's distance cannot be determined or has not been determined yet.

    WithinRange: number

    User is close enough to the landmarker location to begin tracking.

    MMNEPVFCICPMFPCPTTAAATR