Added in API level 37

AppInteractionContract


class AppInteractionContract : BaseColumns
kotlin.Any
   ↳ 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 MutableList<String!>

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

Public methods

getDeviceAssistancePackageNames

Added in API level 37
static fun getDeviceAssistancePackageNames(context: Context): MutableList<String!>

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 android.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.
Return
MutableList<String!> This value cannot be null.