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 function 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.

ChatManager.enablePrivateStorage(ENABLE_PRIVATE_STORAGE isEnable)
ArgumentTypeDescription
ENABLE_PRIVATE_STORAGEbooleantrue files will be not stored in device gallery and it is private false files will be stored in device gallery

To check private storage#

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

ChatManager.isPrivateStorageEnable()