getStorageDirectory

open fun getStorageDirectory(contentType: Int, mediaType: MediaType, storageType: Int): String

Return complete filesystem path of storage directory that used by app according to :

Parameters

contentType

- content type stored

mediaType

- media type of content stored

storageType

- type of storage where content saved.

Throws

in case app external storage not available (for example sd card ejected) APP_EXTERNAL