Lens Scripting API

    Class RemoteServiceModule

    Provides access to Snap authorized remote services.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    name: string

    The name of the Asset in Lens Studio.

    uniqueIdentifier: string

    Methods

    • Experimental Wearable Only

      Deprecated. This method has been moved to InternetModule.

      Parameters

      Returns void

    • Wearable Only

      Deprecated. This method has been moved to InternetModule.

      Parameters

      • request: string | Request
      • Optionaloptions: any

      Returns Promise<Response>

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    • Wearable Only Camera Kit

      Get a DynamicResource to be used with RemoteMediaModule from mediaUrl.

      Parameters

      • mediaUrl: string

      Returns DynamicResource

    MMNEPVFCICPMFPCPTTAAATR