다음을 통해 공유


DevicePolicyManager.SetPersonalAppsSuspended(ComponentName, Boolean) Method

Definition

Called by a profile owner of an organization-owned managed profile to suspend personal apps on the device.

[Android.Runtime.Register("setPersonalAppsSuspended", "(Landroid/content/ComponentName;Z)V", "GetSetPersonalAppsSuspended_Landroid_content_ComponentName_ZHandler", ApiSince=30)]
public virtual void SetPersonalAppsSuspended (Android.Content.ComponentName admin, bool suspended);
[<Android.Runtime.Register("setPersonalAppsSuspended", "(Landroid/content/ComponentName;Z)V", "GetSetPersonalAppsSuspended_Landroid_content_ComponentName_ZHandler", ApiSince=30)>]
abstract member SetPersonalAppsSuspended : Android.Content.ComponentName * bool -> unit
override this.SetPersonalAppsSuspended : Android.Content.ComponentName * bool -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with

suspended
Boolean

Whether personal apps should be suspended.

Attributes

Remarks

Called by a profile owner of an organization-owned managed profile to suspend personal apps on the device. When personal apps are suspended the device can only be used for calls.

Java documentation for android.app.admin.DevicePolicyManager.setPersonalAppsSuspended(android.content.ComponentName, boolean).

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