Lingua

AppInteractionContract.GetDeviceAssistancePackageNames(Context) Method

Definition

Gets the configured list of package names that should be grouped as Device assistance.

[Android.Runtime.Register("getDeviceAssistancePackageNames", "(Landroid/content/Context;)Ljava/util/List;", "", ApiSince=37)]
public static System.Collections.Generic.IList<string> GetDeviceAssistancePackageNames(Android.Content.Context context);
[<Android.Runtime.Register("getDeviceAssistancePackageNames", "(Landroid/content/Context;)Ljava/util/List;", "", ApiSince=37)>]
static member GetDeviceAssistancePackageNames : Android.Content.Context -> System.Collections.Generic.IList<string>

Parameters

context
Context

Returns

Attributes

Remarks

Gets the configured list of package names that should be grouped as Device assistance.

The return value is only the configured list of package names, so that they might not refer to actual installed system apps and the caller should perform its own validation instead of assuming so. Requires Manifest.permission.EXECUTE_APP_FUNCTIONS or android.Manifest.permission.EXECUTE_APP_FUNCTIONS_SYSTEM or android.Manifest.permission.READ_APP_INTERACTION

Android reference for android.app.AppInteractionContract.getDeviceAssistancePackageNames.

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