Lens Scripting API
    Preparing search index...

    Class CameraRollModule

    Provides an interface to the device’s camera roll and allows users to select multiple media.

    Hierarchy (View Summary)

    Index

    Properties

    name: string

    The name of the Asset in Lens Studio.

    onSelectionsUpdated: event1<CameraRollMedia[], void>

    Event triggered when selections are updated.

    selectedMedia: CameraRollMedia[]

    Array of currently selected media objects.

    uniqueIdentifier: string

    Methods

    • Returns the default selection limit for media picker.

      Returns number

    • Returns the maximum allowed selection limit for media picker.

      Returns number

    • Returns the name of this object's type.

      Returns string

    • Closes the device camera roll interface.

      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

    • Opens the device camera roll interface to allow multiple media selection with specified configuration options.

      Parameters

      Returns void