OnObbStateChangeListener
abstract class OnObbStateChangeListener
kotlin.Any | |
↳ | android.os.storage.OnObbStateChangeListener |
Used for receiving notifications from StorageManager
about OBB file states.
Summary
Constants | |
---|---|
static Int |
The OBB has already been mounted. |
static Int |
The OBB could not be mounted by the system. |
static Int |
The OBB could not be unmounted. |
static Int |
There was an internal system error encountered while trying to mount the OBB. |
static Int |
A call was made to unmount the OBB when it was not mounted. |
static Int |
The current application does not have permission to use this OBB. |
static Int |
The OBB container is now mounted and ready for use. |
static Int |
The OBB container is now unmounted and not usable. |
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onObbStateChange(path: String!, state: Int) Called when an OBB has changed states. |
Constants
ERROR_ALREADY_MOUNTED
static val ERROR_ALREADY_MOUNTED: Int
The OBB has already been mounted. Returned in status messages from calls made via StorageManager
Value: 24
ERROR_COULD_NOT_MOUNT
static val ERROR_COULD_NOT_MOUNT: Int
The OBB could not be mounted by the system. Returned in status messages from calls made via StorageManager
Value: 21
ERROR_COULD_NOT_UNMOUNT
static val ERROR_COULD_NOT_UNMOUNT: Int
The OBB could not be unmounted. This most likely indicates that a file is in use on the OBB. Returned in status messages from calls made via StorageManager
Value: 22
ERROR_INTERNAL
static val ERROR_INTERNAL: Int
There was an internal system error encountered while trying to mount the OBB. Returned in status messages from calls made via StorageManager
Value: 20
ERROR_NOT_MOUNTED
static val ERROR_NOT_MOUNTED: Int
A call was made to unmount the OBB when it was not mounted. Returned in status messages from calls made via StorageManager
Value: 23
ERROR_PERMISSION_DENIED
static val ERROR_PERMISSION_DENIED: Int
The current application does not have permission to use this OBB. This could be because the OBB indicates it's owned by a different package or some other error. Returned in status messages from calls made via StorageManager
Value: 25
MOUNTED
static val MOUNTED: Int
The OBB container is now mounted and ready for use. Returned in status messages from calls made via StorageManager
Value: 1
UNMOUNTED
static val UNMOUNTED: Int
The OBB container is now unmounted and not usable. Returned in status messages from calls made via StorageManager
Value: 2
Public constructors
OnObbStateChangeListener
OnObbStateChangeListener()
Public methods
onObbStateChange
open fun onObbStateChange(
path: String!,
state: Int
): Unit
Called when an OBB has changed states.
Parameters | |
---|---|
path |
String!: path to the OBB file the state change has happened on |
state |
Int: the current state of the OBB |