Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/media/projection/AppContentRequest#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/media/projection/AppContentRequest#inhmethods)

# AppContentRequest

*** ** * ** ***

` public final class AppContentRequest `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.media.projection.AppContentRequest |

<br />

*** ** * ** ***

Contains the requested characteristic for an app content projection.

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

Available content must be returned by calling `https://developer.android.com/reference/android/media/projection/AppContentRequest#provideContent(java.util.List<android.media.projection.MediaProjectionAppContent>)`}

## Summary

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/util/Size` | ` https://developer.android.com/reference/android/media/projection/AppContentRequest#getIconSize()() ` Returns the requested icon size, in px, for each `https://developer.android.com/reference/android/media/projection/MediaProjectionAppContent` item. |
| ` https://developer.android.com/reference/android/util/Size` | ` https://developer.android.com/reference/android/media/projection/AppContentRequest#getThumbnailSize()() ` |
| ` void` | ` https://developer.android.com/reference/android/media/projection/AppContentRequest#provideContent(java.util.List<android.media.projection.MediaProjectionAppContent>)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/media/projection/MediaProjectionAppContent> content) ` Used to return the content to the requester. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public methods

### getIconSize

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

```
public Size getIconSize ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/util/Size` | <br /> |

**See also:**

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

### getThumbnailSize

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

```
public Size getThumbnailSize ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/util/Size` | The requested thumbnail size, in px, for each `https://developer.android.com/reference/android/media/projection/MediaProjectionAppContent` item. <br /> |

### provideContent

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

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

<br />

| Parameters ||
|---|---|
| `content` | `List` <br /> |