AppInteractionContract


public final class AppInteractionContract
extends Object implements BaseColumns

java.lang.Object
   ↳ android.app.AppInteractionContract


The contract between the App Interaction history provider and applications with read permission. Contains definitions for the supported URIs and columns.

Summary

Inherited constants

Public methods

static List<String> getDeviceAssistancePackageNames(Context context)

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

Inherited methods

Public methods

getDeviceAssistancePackageNames

Added in API level 37
public static List<String> getDeviceAssistancePackageNames (Context context)

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

Parameters
context Context: This value cannot be null.

Returns
List<String> This value cannot be null.