Share via


StorageManager.UnmountObb(String, Boolean, OnObbStateChangeListener) Method

Definition

Unmount an Opaque Binary Blob (OBB) file asynchronously.

[Android.Runtime.Register("unmountObb", "(Ljava/lang/String;ZLandroid/os/storage/OnObbStateChangeListener;)Z", "GetUnmountObb_Ljava_lang_String_ZLandroid_os_storage_OnObbStateChangeListener_Handler")]
public virtual bool UnmountObb (string? rawPath, bool force, Android.OS.Storage.OnObbStateChangeListener? listener);
[<Android.Runtime.Register("unmountObb", "(Ljava/lang/String;ZLandroid/os/storage/OnObbStateChangeListener;)Z", "GetUnmountObb_Ljava_lang_String_ZLandroid_os_storage_OnObbStateChangeListener_Handler")>]
abstract member UnmountObb : string * bool * Android.OS.Storage.OnObbStateChangeListener -> bool
override this.UnmountObb : string * bool * Android.OS.Storage.OnObbStateChangeListener -> bool

Parameters

rawPath
String

path to the OBB file

force
Boolean

whether to kill any programs using this in order to unmount it

listener
OnObbStateChangeListener

will receive the success or failure of the operation

Returns

whether the unmount call was successfully queued or not

Attributes

Remarks

Unmount an Opaque Binary Blob (OBB) file asynchronously. If the force flag is true, it will kill any application needed to unmount the given OBB (even the calling application).

The OnObbStateChangeListener registered with this call will receive the success or failure of this operation.

<em>Note:</em> you can only mount OBB files for which the OBB tag on the file matches a package ID that is owned by the calling program's UID. That is, shared UID applications can obtain access to any other application's OBB that shares its UID.

Java documentation for android.os.storage.StorageManager.unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to