DevicePolicyManager.IsBackupServiceEnabled(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.
Return whether the backup service is enabled by the device owner or profile owner for the
current user, as previously set by #setBackupServiceEnabled(ComponentName, boolean)
.
[Android.Runtime.Register("isBackupServiceEnabled", "(Landroid/content/ComponentName;)Z", "GetIsBackupServiceEnabled_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual bool IsBackupServiceEnabled (Android.Content.ComponentName admin);
[<Android.Runtime.Register("isBackupServiceEnabled", "(Landroid/content/ComponentName;)Z", "GetIsBackupServiceEnabled_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member IsBackupServiceEnabled : Android.Content.ComponentName -> bool
override this.IsBackupServiceEnabled : Android.Content.ComponentName -> bool
Parameters
- admin
- ComponentName
Returns
true
if backup service is enabled, false
otherwise.
- Attributes
Remarks
Return whether the backup service is enabled by the device owner or profile owner for the current user, as previously set by #setBackupServiceEnabled(ComponentName, boolean)
.
Whether the backup functionality is actually enabled or not depends on settings from both the current user and the device owner, please see #setBackupServiceEnabled(ComponentName, boolean)
for details.
Backup service manages all backup and restore mechanisms on the device.
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.