Private Storage

Overview#

Private storage allows you to prevent media files from being stored in the device's photo album. Files stored in the application cannot be accessed by other applications.

To enable private storage#

This Parameter is used to enable or disable the storage of files in the device gallery. If enabled, files will not be stored in the device gallery.

Mirrorfly.initializeSDK(enablePrivateStorage: ENABLE_PRIVATE_STORAGE);
ArgumentTypeDescription
ENABLE_PRIVATE_STORAGEbooltrue files will be not stored in device gallery and it is private false files will be stored in device gallery

To check private storage is enabled or not#

This function is used to check whether private storage is enabled or not. If it returns true, private storage is enabled.

var isPrivateStorageEnabled = await Mirrorfly.isPrivateStorageEnabledOrNot();