public abstract class

OnObbStateChangeListener

extends Object
java.lang.Object
   ↳android.os.storage.OnObbStateChangeListener

Class Overview

Used for receiving notifications from StorageManager about OBB file states.

Summary

Constants
intERROR_ALREADY_MOUNTEDThe OBB has already been mounted.
intERROR_COULD_NOT_MOUNTThe OBB could not be mounted by the system.
intERROR_COULD_NOT_UNMOUNTThe OBB could not be unmounted.
intERROR_INTERNALThere was an internal system error encountered while trying to mount the OBB.
intERROR_NOT_MOUNTEDA call was made to unmount the OBB when it was not mounted.
intERROR_PERMISSION_DENIEDThe current application does not have permission to use this OBB.
intMOUNTEDThe OBB container is now mounted and ready for use.
intUNMOUNTEDThe 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.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ERROR_ALREADY_MOUNTED

Since: API Level 9

The OBB has already been mounted. Returned in status messages from calls made via StorageManager

Constant Value: 24 (0x00000018)

public static final int ERROR_COULD_NOT_MOUNT

Since: API Level 9

The OBB could not be mounted by the system. Returned in status messages from calls made via StorageManager

Constant Value: 21 (0x00000015)

public static final int ERROR_COULD_NOT_UNMOUNT

Since: API Level 9

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)

public static final int ERROR_INTERNAL

Since: API Level 9

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)

public static final int ERROR_NOT_MOUNTED

Since: API Level 9

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)

public static final int ERROR_PERMISSION_DENIED

Since: API Level 9

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)

public static final int MOUNTED

Since: API Level 9

The OBB container is now mounted and ready for use. Returned in status messages from calls made via StorageManager

Constant Value: 1 (0x00000001)

public static final int UNMOUNTED

Since: API Level 9

The OBB container is now unmounted and not usable. Returned in status messages from calls made via StorageManager

Constant Value: 2 (0x00000002)

Public Constructors

public OnObbStateChangeListener ()

Since: API Level 9

Public Methods

public void onObbStateChange (String path, int state)

Since: API Level 9

Called when an OBB has changed states.

Parameters
path path to the OBB file the state change has happened on
state the current state of the OBB