Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# AppContentRequest

*** ** * ** ***

```
class AppContentRequest
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.media.projection.AppContentRequest](https://developer.android.com/reference/kotlin/android/media/projection/AppContentRequest#) |

Contains the requested characteristic for an app content projection.

An instance of this class is passed to `https://developer.android.com/reference/kotlin/android/media/projection/AppContentProjectionService#onContentRequest(android.media.projection.AppContentRequest)`

Available content must be returned by calling `https://developer.android.com/reference/kotlin/android/media/projection/AppContentRequest#provideContent(kotlin.collections.MutableList)`}

## Summary

| Public methods ||
|---|---|
| [Size](https://developer.android.com/reference/kotlin/android/util/Size.html#) | `https://developer.android.com/reference/kotlin/android/media/projection/AppContentRequest#getIconSize()()` Returns the requested icon size, in px, for each `https://developer.android.com/reference/kotlin/android/media/projection/MediaProjectionAppContent` item. |
| [Size](https://developer.android.com/reference/kotlin/android/util/Size.html#) | `https://developer.android.com/reference/kotlin/android/media/projection/AppContentRequest#getThumbnailSize()()` <br /> |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/projection/AppContentRequest#provideContent(kotlin.collections.MutableList)(content: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/media/projection/MediaProjectionAppContent!>)` Used to return the content to the requester. |

## Public methods

### getIconSize

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getIconSize(): Size
```

Returns the requested icon size, in px, for each `https://developer.android.com/reference/kotlin/android/media/projection/MediaProjectionAppContent` item.
**See Also**

- `https://developer.android.com/reference/kotlin/android/media/projection/MediaProjectionAppContent#getIcon()`

### getThumbnailSize

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getThumbnailSize(): Size
```

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/util/Size.html#` | The requested thumbnail size, in px, for each `https://developer.android.com/reference/kotlin/android/media/projection/MediaProjectionAppContent` item. |

### provideContent

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
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.