Added in API level 37

AppContentRequest


class AppContentRequest
kotlin.Any
   ↳ android.media.projection.AppContentRequest

Contains the requested characteristic for an app content projection.

An instance of this class is passed to AppContentProjectionService.onContentRequest(AppContentRequest)

Available content must be returned by calling provideContent(List)}

Summary

Public methods
Size

Returns the requested icon size, in px, for each MediaProjectionAppContent item.

Size

Unit

Used to return the content to the requester.

Public methods

getIconSize

Added in API level 37
fun getIconSize(): Size

Returns the requested icon size, in px, for each MediaProjectionAppContent item.

getThumbnailSize

Added in API level 37
fun getThumbnailSize(): Size
Return
Size The requested thumbnail size, in px, for each MediaProjectionAppContent item.

provideContent

Added in API level 37
fun provideContent(content: MutableList<MediaProjectionAppContent!>): Unit

Used to return the content to the requester. The content passed here will replace any previously provided content.

If no more content is available to offer, an empty list can be passed.