StorageManager.MountObb(String, String, OnObbStateChangeListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Mount an Opaque Binary Blob (OBB) file.
[Android.Runtime.Register("mountObb", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/storage/OnObbStateChangeListener;)Z", "GetMountObb_Ljava_lang_String_Ljava_lang_String_Landroid_os_storage_OnObbStateChangeListener_Handler")]
public virtual bool MountObb (string? rawPath, string? key, Android.OS.Storage.OnObbStateChangeListener? listener);
[<Android.Runtime.Register("mountObb", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/storage/OnObbStateChangeListener;)Z", "GetMountObb_Ljava_lang_String_Ljava_lang_String_Landroid_os_storage_OnObbStateChangeListener_Handler")>]
abstract member MountObb : string * string * Android.OS.Storage.OnObbStateChangeListener -> bool
override this.MountObb : string * string * Android.OS.Storage.OnObbStateChangeListener -> bool
Parameters
- rawPath
- String
the path to the OBB file
- key
- String
must be null
. Previously, some Android device
implementations accepted a non-null
key to mount
an encrypted OBB file. However, this never worked reliably and
is no longer supported.
- listener
- OnObbStateChangeListener
will receive the success or failure of the operation
Returns
whether the mount call was successfully queued or not
- Attributes
Remarks
Mount an Opaque Binary Blob (OBB) file.
The OBB will remain mounted for as long as the StorageManager reference is held by the application. As soon as this reference is lost, the OBBs in use will be unmounted. 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 attempt to mount any other application's OBB that shares its UID.
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.