Provides access to location cloud storage depending upon the LocationCloudStorageOptions.


interface LocationCloudStorageModule {
    name: string;
    uniqueIdentifier: string;
    getNearbyLocationStores(options: LocationCloudStorageOptions): void;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    retrieveLocation(persistedLocationId: string, onRetrievedLocation: ((location: LocationAsset) => void), onError: ((error: string) => void)): void;
    storeLocation(location: LocationAsset, onStoredLocation: ((persistedLocationId: string) => void), onError: ((error: string) => void)): void;
}

Hierarchy (view full)

  • Asset
    • LocationCloudStorageModule

Properties

name: string

The name of the Asset in Lens Studio.

uniqueIdentifier: string

Methods

  • Request discovery of LocationCloudStores based on the user location.

    Parameters

    Returns void

  • 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

  • Retrieves the specified LocationAsset.

    Parameters

    • persistedLocationId: string
    • onRetrievedLocation: ((location: LocationAsset) => void)
    • onError: ((error: string) => void)
        • (error): void
        • Parameters

          • error: string

          Returns void

    Returns void

  • Stores the specified LocationAsset.

    Parameters

    • location: LocationAsset
    • onStoredLocation: ((persistedLocationId: string) => void)
        • (persistedLocationId): void
        • Parameters

          • persistedLocationId: string

          Returns void

    • onError: ((error: string) => void)
        • (error): void
        • Parameters

          • error: string

          Returns void

    Returns void