Preparing search index...

    Class ShoppingModule

    Allows the creation of Shopping Lenses with an integrated Product Catalog.

    The ShoppingModule includes several input fields for you to define as you create your Shopping Lens. The fields include:

    Domain: name of the product line (e.g., Running Shoes). Description: (of the domain): description of the domain (e.g., Winter Season Collection). State(s): name of the single product displayed in that state (e.g., Shoe ABC). Description (of each state): description of the product in the state (e.g., SKU ID 12345, red shoe).

    Shopping Lens guide.

    Lens Scripting Version 153

    Hierarchy (View Summary)

    Index

    Properties

    domains: DomainInfo[]

    The domain within this shopping module.

    Lens Scripting Version 168

    name: string

    The name of the Asset in Lens Studio.

    ""
    
    onError: event2<number, string, void>

    Triggered when an error has occured on the module.

    Lens Scripting Version 153

    onProductsLoaded: event1<string, void>

    Lens Scripting Version 321

    onProductStateUpdate: event1<string, void>

    Triggered when the client (e.g. Snapchat) has changed the product state.

    Lens Scripting Version 153

    uniqueIdentifier: string

    Lens Scripting Version 176

    Methods

    • 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

    • Parameters

      • index: number

      Returns void

      Lens Scripting Version 321