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 |
| Size | |
| Unit |
provideContent(content: MutableList<MediaProjectionAppContent!>)Used to return the content to the requester. |
Public methods
getIconSize
fun getIconSize(): Size
Returns the requested icon size, in px, for each MediaProjectionAppContent item.
getThumbnailSize
fun getThumbnailSize(): Size
| Return | |
|---|---|
Size |
The requested thumbnail size, in px, for each MediaProjectionAppContent item. |
provideContent
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.