Skip to main content

ShoppingLoadingIndicator

Class

Represents the loading state of the ShoppingModule.

  • Snapchat: not supported
  • SPECS: not supported
  • Camera Kit Web: fully supported
  • Camera Kit Mobile: fully supported
  • SnapchatNot supported — Available on Camera Kit only
  • SPECSNot supported — Available on Camera Kit only
  • Camera Kit WebFully supported
  • Camera Kit MobileFully supported

Platform details

  • Snapchat — Not supported — Available on Camera Kit only.

  • SPECS — Not supported — Available on Camera Kit only.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v162

Represents the loading state of the ShoppingModule. Returned by ShoppingModule.loadingStarted. Subscribe to the ShoppingLoadingIndicator#loadingSucceeded and ShoppingLoadingIndicator#loadingFailed events to be notified when loading completes.

Index

Extends

Properties

loadingFailed

readonly loadingFailed: () => void

Camera Kit

Returns

void

Since

Lens Scripting Version 162


loadingSucceeded

readonly loadingSucceeded: () => void

Camera Kit

Returns

void

Since

Lens Scripting Version 162

Methods

getTypeName()

static getTypeName(): TypeName<ShoppingLoadingIndicator>

Camera Kit

Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

Returns

TypeName<ShoppingLoadingIndicator>

Since

Lens Scripting Version 162

Overrides

ScriptObject.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

ScriptObject.getTypeName


isOfType()

isOfType(type): boolean

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

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

ScriptObject.isOfType


isSame()

isSame(other): boolean

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

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

ScriptObject.isSame