DevicePolicyManager.GetStorageEncryption(ComponentName) 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.
This member is deprecated.
[Android.Runtime.Register("getStorageEncryption", "(Landroid/content/ComponentName;)Z", "GetGetStorageEncryption_Landroid_content_ComponentName_Handler")]
public virtual bool GetStorageEncryption (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getStorageEncryption", "(Landroid/content/ComponentName;)Z", "GetGetStorageEncryption_Landroid_content_ComponentName_Handler")>]
abstract member GetStorageEncryption : Android.Content.ComponentName -> bool
override this.GetStorageEncryption : Android.Content.ComponentName -> bool
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. If null,
this will return the requested encryption setting as an aggregate of all active
administrators.
Returns
true if the admin(s) are requesting encryption, false if not.
- Attributes
Remarks
This member is deprecated. This method only returns the value set by #setStorageEncryption
. It does not actually reflect the storage encryption status. Use #getStorageEncryptionStatus
for that.
Called by an application that is administering the device to determine the requested setting for secure storage.
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.