PersonalContextManager.InvokeIsPersonalContextModeEnabled(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.