Język

PersonalContextManager.InvokeIsPersonalContextModeEnabled(String) Method

Definition

Checks whether Personal Context data collection is enabled for a specified package.

[Android.Runtime.Register("isPersonalContextModeEnabled", "(Ljava/lang/String;)Z", "", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.QUERY_ALL_PACKAGES")]
public bool InvokeIsPersonalContextModeEnabled(string packageName);
[<Android.Runtime.Register("isPersonalContextModeEnabled", "(Ljava/lang/String;)Z", "", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.QUERY_ALL_PACKAGES")>]
member this.InvokeIsPersonalContextModeEnabled : string -> bool

Parameters

packageName
String

The package whose Personal Context data-collection setting is queried.

Returns

true if collection is enabled for the package; otherwise, false.

Attributes

Remarks

This overload queries packageName rather than selecting the calling package automatically. Android applies access checks when an application queries another package's setting.

Applies to