OnObbStateChangeListener
  public
  
  
  abstract
  class
  OnObbStateChangeListener
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.os.storage.OnObbStateChangeListener | 
Used for receiving notifications from StorageManager about OBB file
 states.
Summary
| Constants | |
|---|---|
| int | ERROR_ALREADY_MOUNTEDThe OBB has already been mounted. | 
| int | ERROR_COULD_NOT_MOUNTThe OBB could not be mounted by the system. | 
| int | ERROR_COULD_NOT_UNMOUNTThe OBB could not be unmounted. | 
| int | ERROR_INTERNALThere was an internal system error encountered while trying to mount the OBB. | 
| int | ERROR_NOT_MOUNTEDA call was made to unmount the OBB when it was not mounted. | 
| int | ERROR_PERMISSION_DENIEDThe current application does not have permission to use this OBB. | 
| int | MOUNTEDThe OBB container is now mounted and ready for use. | 
| int | UNMOUNTEDThe OBB container is now unmounted and not usable. | 
| Public constructors | |
|---|---|
| 
      OnObbStateChangeListener()
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      onObbStateChange(String path, int state)
      Called when an OBB has changed states. | 
| Inherited methods | |
|---|---|
Constants
ERROR_ALREADY_MOUNTED
public static final int ERROR_ALREADY_MOUNTED
The OBB has already been mounted. Returned in status messages from calls
 made via StorageManager
Constant Value: 24 (0x00000018)
ERROR_COULD_NOT_MOUNT
public static final int ERROR_COULD_NOT_MOUNT
The OBB could not be mounted by the system. Returned in status messages
 from calls made via StorageManager
Constant Value: 21 (0x00000015)
ERROR_COULD_NOT_UNMOUNT
public static final int ERROR_COULD_NOT_UNMOUNT
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
Constant Value: 22 (0x00000016)
ERROR_INTERNAL
public static final int ERROR_INTERNAL
There was an internal system error encountered while trying to mount the
 OBB. Returned in status messages from calls made via
 StorageManager
Constant Value: 20 (0x00000014)
ERROR_NOT_MOUNTED
public static final int ERROR_NOT_MOUNTED
A call was made to unmount the OBB when it was not mounted. Returned in
 status messages from calls made via StorageManager
Constant Value: 23 (0x00000017)
ERROR_PERMISSION_DENIED
public static final int ERROR_PERMISSION_DENIED
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
Constant Value: 25 (0x00000019)
MOUNTED
public static final int MOUNTED
The OBB container is now mounted and ready for use. Returned in status
 messages from calls made via StorageManager
Constant Value: 1 (0x00000001)
UNMOUNTED
public static final int UNMOUNTED
The OBB container is now unmounted and not usable. Returned in status
 messages from calls made via StorageManager
Constant Value: 2 (0x00000002)
Public constructors
OnObbStateChangeListener
public OnObbStateChangeListener ()
Public methods
onObbStateChange
public void onObbStateChange (String path, int state)
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 | 
