Provides cross-platform interface to access devices's media gallery and camera for picking/saving media content.
◆ Initialize()
static void Initialize |
( |
MediaServicesUnitySettings | settings | ) |
|
|
static |
- Note
- This call is optional and only need to be called if you have custom settings to initialize this feature.
- Parameters
-
settings | The settings to be used for initialization. |
The settings configure the behavior of the media services module.
◆ GetGalleryAccessStatus()
To see different authorization status, see GalleryAccessStatus.
- Parameters
-
mode | The access mode your app is requesting. |
◆ GetCameraAccessStatus()
◆ SelectMediaContent()
Selects media content as per the options specified in MediaContentSelectOptions
- Parameters
-
options | A set of options that customize the behavior of the method. |
callback | A callback which will be invoked after the user selects media content. |
◆ CaptureMediaContent()
Captures media content as per the options specified in MediaContentCaptureOptions
- Parameters
-
options | A set of options that customize the behavior of the method. |
callback | A callback which will be invoked after the user captures media content. |
◆ SaveMediaContent()
static void SaveMediaContent |
( |
byte[] | data, |
|
|
string | mimeType, |
|
|
MediaContentSaveOptions | options, |
|
|
EventCallback< bool > | callback ) |
|
static |
Saves media content as per the options specified in MediaContentSaveOptions
- Parameters
-
data | The data to save to the gallery. |
mimeType | The mime type of the data. |
options | A set of options that customize the behavior of the method. |
callback | A callback which will be invoked after the data is saved to the gallery. |