CameraRollModule
ClassProvides an interface to the device’s camera roll and allows users to select multiple media.
- Available on all platforms
Index
Properties
Methods
Extends
Properties
name
name:
string
The name of the Asset in Lens Studio.
Default Value
""
Inherited from
onSelectionsUpdated
readonlyonSelectionsUpdated:event1<CameraRollMedia[],void>
Event triggered when selections are updated.
selectedMedia
readonlyselectedMedia:CameraRollMedia[]
Array of currently selected media objects.
uniqueIdentifier
readonlyuniqueIdentifier:string
Since
Lens Scripting Version 176
Inherited from
Methods
getDefaultSelectionLimit()
staticgetDefaultSelectionLimit():number
Returns the default selection limit for media picker.
Returns
number
Since
Lens Scripting Version 321
getMaxSelectionLimit()
staticgetMaxSelectionLimit():number
Returns the maximum allowed selection limit for media picker.
Returns
number
Since
Lens Scripting Version 321
getTypeName()
staticgetTypeName():TypeName<CameraRollModule>
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<CameraRollModule>
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
hideMediaPicker()
hideMediaPicker():
void
Closes the device camera roll interface.
Returns
void
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
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
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean
Inherited from
showMediaPicker()
showMediaPicker(
options):void
Opens the device camera roll interface to allow multiple media selection with specified configuration options.
Parameters
| Parameter | Type |
|---|---|
options | ShowOptions |
Returns
void
Nested types
Classes
| Class | Description |
|---|---|
| ShowOptions | Configuration options for displaying the camera roll media picker. |