Compartilhar via


DevicePolicyManager.IsBackupServiceEnabled(ComponentName) Method

Definition

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

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.

Java documentation for android.app.admin.DevicePolicyManager.isBackupServiceEnabled(android.content.ComponentName).

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