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 |
Size
|
getThumbnailSize()
|
void
|
provideContent(List<MediaProjectionAppContent> content)
Used to return the content to the requester. |
Inherited methods | |
|---|---|
Public methods
getIconSize
public Size getIconSize ()
Returns the requested icon size, in px, for each MediaProjectionAppContent item.
| Returns | |
|---|---|
Size |
|
See also:
getThumbnailSize
public Size getThumbnailSize ()
| Returns | |
|---|---|
Size |
The requested thumbnail size, in px, for each MediaProjectionAppContent
item. |
provideContent
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 |