StorageManager Class
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.
StorageManager is the interface to the systems storage service.
[Android.Runtime.Register("android/os/storage/StorageManager", DoNotGenerateAcw=true)]
public class StorageManager : Java.Lang.Object
[<Android.Runtime.Register("android/os/storage/StorageManager", DoNotGenerateAcw=true)>]
type StorageManager = class
inherit Object
- Inheritance
- Attributes
StorageManager is the interface to the systems storage service. The storage manager handles storage-related items such as Opaque Binary Blobs (OBBs).
OBBs contain a filesystem that maybe be encrypted on disk and mounted on-demand from an application. OBBs are a good way of providing large amounts of binary assets without packaging them into APKs as they may be multiple gigabytes in size. However, due to their size, they're most likely stored in a shared storage pool accessible from all programs. The system does not guarantee the security of the OBB file itself: if any program modifies the OBB, there is no guarantee that a read from that OBB will produce the expected output.
Java documentation for android.os.storage.StorageManager
.
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.
Storage |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Action |
Activity Action: Allows the user to free up space by clearing app external cache directories. |
Action |
Activity Action: Allows the user to manage their storage. |
Extra |
Extra used to indicate the total size (in bytes) that an application is interested in allocating. |
Extra |
Extra |
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
Is |
Check whether the device supports filesystem checkpoint. |
Jni |
(Inherited from Object) |
Jni |
|
Peer |
(Inherited from Object) |
Primary |
Return the primary shared/external storage volume available to the current user. |
Recent |
Return the list of shared/external storage volumes both currently and recently available to the calling user. |
Storage |
Return the list of shared/external storage volumes currently available to the calling user. |
Storage |
Return the list of shared/external storage volumes currently available to the calling user and the user it shares media with. |
Threshold |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Threshold |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Uuid |
UUID representing the default internal storage of this device which
provides |
Allocate |
Allocate the requested number of bytes for your application to use in the given open file. |
Allocate |
Allocate the requested number of bytes for your application to use on the given storage volume. |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
From |
|
Get |
Return the maximum number of new bytes that your app can allocate for itself on the given storage volume. |
Get |
Return quota size in bytes for all cached data belonging to the calling app on the given storage volume. |
Get |
Return total size in bytes of all cached data belonging to the calling app on the given storage volume. |
Get |
Returns a hash code value for the object. (Inherited from Object) |
Get |
Returns a |
Get |
Check the mounted path of an Opaque Binary Blob (OBB) file. |
Get |
Return the |
Get |
Return the |
Get |
Return a UUID identifying the storage volume that hosts the given filesystem path. |
Is |
Test if the given file descriptor supports allocation of disk space using
|
Is |
Read the current value set by
|
Is |
Read the current value set by
|
Is |
Return if data stored at or under the given path will be encrypted while at rest. |
Is |
Check whether an Opaque Binary Blob (OBB) is mounted or not. |
Java |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Mount |
Mount an Opaque Binary Blob (OBB) file. |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
Notify |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
Open |
Opens a seekable |
Register |
Registers the given callback to listen for |
Set |
Enable or disable special cache behavior that treats this directory and its contents as an entire group. |
Set |
Enable or disable special cache behavior that leaves deleted cache files intact as tombstones. |
Set |
Sets the Handle property. (Inherited from Object) |
To |
(Inherited from Object) |
To |
Returns a string representation of the object. (Inherited from Object) |
Unmount |
Unmount an Opaque Binary Blob (OBB) file asynchronously. |
Unregister |
(Inherited from Object) |
Unregister |
Unregisters the given callback from listening for |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
IJava |
(Inherited from Object) |
IJava |
(Inherited from Object) |
IJava |
(Inherited from Object) |
IJava |
(Inherited from Object) |
IJava |
(Inherited from Object) |
IJava |
(Inherited from Object) |
IJava |
(Inherited from Object) |
Java |
Performs an Android runtime-checked type conversion. |
Java |
|
Get |