# MediaQualityManager.PictureProfileCallback

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#pubctors)\|[Methods](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#inhmethods)  

# MediaQualityManager.PictureProfileCallback

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/media/quality/MediaQualityManager.PictureProfileCallback "View this page in Kotlin")\|Java

`
public
static

abstract
class
MediaQualityManager.PictureProfileCallback
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.media.quality.MediaQualityManager.PictureProfileCallback |

<br />

*** ** * ** ***

Callback used to monitor status of picture profiles

## Summary

|                                                                        ### Public constructors                                                                         ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PictureProfileCallback](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#PictureProfileCallback())`() ` |

|                                                                                                                                                                                                                                                                                                                  ### Public methods                                                                                                                                                                                                                                                                                                                  ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onError](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#onError(java.lang.String,%20int))`(`[String](https://developer.android.com/reference/java/lang/String)` profileId, int errorCode) ` This is invoked when an issue has occurred.                                                                                                                                                                                                                                                                                                                                       |
| ` void` | ` `[onParameterCapabilitiesChanged](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#onParameterCapabilitiesChanged(java.lang.String,%20java.util.List<android.media.quality.ParameterCapability>))`(`[String](https://developer.android.com/reference/java/lang/String)` profileId, `[List](https://developer.android.com/reference/java/util/List)`<`[ParameterCapability](https://developer.android.com/reference/android/media/quality/ParameterCapability)`> updatedCaps) ` This is invoked when parameter capabilities has been changed due to status changes of the content. |
| ` void` | ` `[onPictureProfileAdded](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#onPictureProfileAdded(java.lang.String,%20android.media.quality.PictureProfile))`(`[String](https://developer.android.com/reference/java/lang/String)` profileId, `[PictureProfile](https://developer.android.com/reference/android/media/quality/PictureProfile)` profile) ` This is invoked when a picture profile has been added.                                                                                                                                                                    |
| ` void` | ` `[onPictureProfileRemoved](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#onPictureProfileRemoved(java.lang.String,%20android.media.quality.PictureProfile))`(`[String](https://developer.android.com/reference/java/lang/String)` profileId, `[PictureProfile](https://developer.android.com/reference/android/media/quality/PictureProfile)` profile) ` This is invoked when a picture profile has been removed.                                                                                                                                                              |
| ` void` | ` `[onPictureProfileUpdated](https://developer.android.com/reference/android/media/quality/MediaQualityManager.PictureProfileCallback#onPictureProfileUpdated(java.lang.String,%20android.media.quality.PictureProfile))`(`[String](https://developer.android.com/reference/java/lang/String)` profileId, `[PictureProfile](https://developer.android.com/reference/android/media/quality/PictureProfile)` profile) ` This is invoked when a picture profile has been updated.                                                                                                                                                              |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](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 `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](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`                                                                  | ` `[wait](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`                                                                  | ` `[wait](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 constructors

### PictureProfileCallback

```
public PictureProfileCallback ()
```

<br />

<br />

## Public methods

### onError

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

```
public void onError (String profileId, 
                int errorCode)
```

This is invoked when an issue has occurred.

<br />

|                                                                                                                                                                                                                                                                                                                                                                  Parameters                                                                                                                                                                                                                                                                                                                                                                   ||
|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `profileId` | `String`: the profile ID related to the error.`null`if there is no associated profile. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `errorCode` | `int`: the error code Value is[PictureProfile.ERROR_UNKNOWN](https://developer.android.com/reference/android/media/quality/PictureProfile#ERROR_UNKNOWN),[PictureProfile.ERROR_NO_PERMISSION](https://developer.android.com/reference/android/media/quality/PictureProfile#ERROR_NO_PERMISSION),[PictureProfile.ERROR_DUPLICATE](https://developer.android.com/reference/android/media/quality/PictureProfile#ERROR_DUPLICATE),[PictureProfile.ERROR_INVALID_ARGUMENT](https://developer.android.com/reference/android/media/quality/PictureProfile#ERROR_INVALID_ARGUMENT), or[PictureProfile.ERROR_NOT_ALLOWLISTED](https://developer.android.com/reference/android/media/quality/PictureProfile#ERROR_NOT_ALLOWLISTED) <br /> |

### onParameterCapabilitiesChanged

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

```
public void onParameterCapabilitiesChanged (String profileId, 
                List<ParameterCapability> updatedCaps)
```

This is invoked when parameter capabilities has been changed due to status changes of the content.

<br />

|                                                       Parameters                                                        ||
|---------------|----------------------------------------------------------------------------------------------------------|
| `profileId`   | `String`: the ID of the profile used by the media content.`null`if there is no associated profile <br /> |
| `updatedCaps` | `List`: the updated capabilities. This value cannot be`null`. <br />                                     |

### onPictureProfileAdded

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

```
public void onPictureProfileAdded (String profileId, 
                PictureProfile profile)
```

This is invoked when a picture profile has been added.

<br />

|                                         Parameters                                         ||
|-------------|-------------------------------------------------------------------------------|
| `profileId` | `String`: the ID of the profile. This value cannot be`null`. <br />           |
| `profile`   | `PictureProfile`: the newly added profile. This value cannot be`null`. <br /> |

### onPictureProfileRemoved

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

```
public void onPictureProfileRemoved (String profileId, 
                PictureProfile profile)
```

This is invoked when a picture profile has been removed.

<br />

|                                       Parameters                                       ||
|-------------|---------------------------------------------------------------------------|
| `profileId` | `String`: the ID of the profile. This value cannot be`null`. <br />       |
| `profile`   | `PictureProfile`: the removed profile. This value cannot be`null`. <br /> |

### onPictureProfileUpdated

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

```
public void onPictureProfileUpdated (String profileId, 
                PictureProfile profile)
```

This is invoked when a picture profile has been updated.

<br />

|                                            Parameters                                            ||
|-------------|-------------------------------------------------------------------------------------|
| `profileId` | `String`: the ID of the profile. This value cannot be`null`. <br />                 |
| `profile`   | `PictureProfile`: the profile with updated info. This value cannot be`null`. <br /> |