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: 24ERROR_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: 21ERROR_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: 22ERROR_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: 20ERROR_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: 23ERROR_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: 25MOUNTED
static val MOUNTED: Int
The OBB container is now mounted and ready for use. Returned in status messages from calls made via StorageManager
Value: 1UNMOUNTED
static val UNMOUNTED: Int
The OBB container is now unmounted and not usable. Returned in status messages from calls made via StorageManager
Value: 2Public 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 | 
