Added in API level 37

AppContentRequest


public final class AppContentRequest
extends Object

java.lang.Object
   ↳ 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 getIconSize()

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

Size getThumbnailSize()
void provideContent(List<MediaProjectionAppContent> content)

Used to return the content to the requester.

Inherited methods

Public methods

getIconSize

Added in API level 37
public Size getIconSize ()

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

Returns
Size

getThumbnailSize

Added in API level 37
public Size getThumbnailSize ()

Returns
Size The requested thumbnail size, in px, for each MediaProjectionAppContent item.

provideContent

Added in API level 37
public void provideContent (List<MediaProjectionAppContent> content)

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.

Parameters
content List