Udostępnij za pośrednictwem


DevicePolicyManager.IsCommonCriteriaModeEnabled(ComponentName) Method

Definition

Returns whether Common Criteria mode is currently enabled.

[Android.Runtime.Register("isCommonCriteriaModeEnabled", "(Landroid/content/ComponentName;)Z", "GetIsCommonCriteriaModeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool IsCommonCriteriaModeEnabled (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("isCommonCriteriaModeEnabled", "(Landroid/content/ComponentName;)Z", "GetIsCommonCriteriaModeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member IsCommonCriteriaModeEnabled : Android.Content.ComponentName -> bool
override this.IsCommonCriteriaModeEnabled : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

Returns

true if Common Criteria mode is enabled, false otherwise.

Attributes

Remarks

Returns whether Common Criteria mode is currently enabled. Device owner and profile owner of an organization-owned managed profile can query its own Common Criteria mode setting by calling this method with its admin ComponentName. Any caller can obtain the aggregated device-wide Common Criteria mode state by passing null as the admin argument.

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