共用方式為


DevicePolicyManager.GetPersonalAppsSuspendedReasons(ComponentName) Method

Definition

Called by profile owner of an organization-owned managed profile to check whether personal apps are suspended.

[Android.Runtime.Register("getPersonalAppsSuspendedReasons", "(Landroid/content/ComponentName;)I", "GetGetPersonalAppsSuspendedReasons_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual int GetPersonalAppsSuspendedReasons (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getPersonalAppsSuspendedReasons", "(Landroid/content/ComponentName;)I", "GetGetPersonalAppsSuspendedReasons_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetPersonalAppsSuspendedReasons : Android.Content.ComponentName -> int
override this.GetPersonalAppsSuspendedReasons : Android.Content.ComponentName -> int

Parameters

Returns

a bitmask of reasons for personal apps suspension or #PERSONAL_APPS_NOT_SUSPENDED if apps are not suspended.

Attributes

Remarks

Called by profile owner of an organization-owned managed profile to check whether personal apps are suspended.

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