Share via


DevicePolicyManager.SetProfileEnabled(ComponentName) Method

Definition

Sets the enabled state of the profile.

[Android.Runtime.Register("setProfileEnabled", "(Landroid/content/ComponentName;)V", "GetSetProfileEnabled_Landroid_content_ComponentName_Handler")]
public virtual void SetProfileEnabled (Android.Content.ComponentName admin);
[<Android.Runtime.Register("setProfileEnabled", "(Landroid/content/ComponentName;)V", "GetSetProfileEnabled_Landroid_content_ComponentName_Handler")>]
abstract member SetProfileEnabled : Android.Content.ComponentName -> unit
override this.SetProfileEnabled : Android.Content.ComponentName -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Attributes

Remarks

Sets the enabled state of the profile. A profile should be enabled only once it is ready to be used. Only the profile owner can call this.

Java documentation for android.app.admin.DevicePolicyManager.setProfileEnabled(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

See also