Lens Scripting API

    Class LocationCloudStore

    Instance of location cloud store which has a similar interface as cloud store.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Methods

    • Deletes a value on the location cloud store. Note: when updating a value, the scope and collection must match that of the original value.

      Parameters

      • key: string
      • readOptions: CloudStorageReadOptions
      • onDeleted: () => void
      • onError: (code: string, description: string) => void

      Returns void

    • Gets a value on the location cloud store. Note: when updating a value, the scope and collection must match that of the original value.

      Parameters

      • key: string
      • readOptions: CloudStorageReadOptions
      • onRetrieved: (
            key: string,
            value:
                | string
                | number
                | boolean
                | vec4
                | vec3
                | quat
                | mat4
                | vec2
                | mat3
                | mat2,
            collection: string,
        ) => void
      • onError: (code: string, description: string) => void

      Returns void

    • 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

    • List values on the location cloud store. Note: when updating a value, the scope and collection must match that of the original value.

      Parameters

      • listOptions: CloudStorageListOptions
      • onRetrieved: (
            values: (
                | string
                | number
                | boolean
                | vec4
                | vec3
                | quat
                | mat4
                | vec2
                | mat3
                | mat2
            )[][],
            cursor: string,
            collection: string,
        ) => void
      • onError: (code: string, description: string) => void

      Returns void

    • Create/update a value on the location cloud store. Note: when updating a value, the scope and collection must match that of the original value.

      Parameters

      Returns void

    MMNEPVFCICPMFPCPTTAAATR