PictureProfileCallback


abstract class PictureProfileCallback
kotlin.Any
   ↳ android.media.quality.MediaQualityManager.PictureProfileCallback

Callback used to monitor status of picture profiles

Summary

Public constructors

Public methods
open Unit
onError(profileId: String?, errorCode: Int)

This is invoked when an issue has occurred.

open Unit

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

open Unit

This is invoked when a picture profile has been added.

open Unit

This is invoked when a picture profile has been removed.

open Unit

This is invoked when a picture profile has been updated.

Public constructors

PictureProfileCallback

PictureProfileCallback()

Public methods

onError

open fun onError(
    profileId: String?,
    errorCode: Int
): Unit

This is invoked when an issue has occurred.

Parameters
profileId String?: the profile ID related to the error. null if there is no associated profile.
errorCode Int: the error code Value is android.media.quality.PictureProfile#ERROR_UNKNOWN, android.media.quality.PictureProfile#ERROR_NO_PERMISSION, android.media.quality.PictureProfile#ERROR_DUPLICATE, android.media.quality.PictureProfile#ERROR_INVALID_ARGUMENT, or android.media.quality.PictureProfile#ERROR_NOT_ALLOWLISTED

onParameterCapabilitiesChanged

open fun onParameterCapabilitiesChanged(
    profileId: String?,
    updatedCaps: MutableList<ParameterCapability!>
): Unit

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

Parameters
profileId String?: the ID of the profile used by the media content. null if there is no associated profile
updatedCaps MutableList<ParameterCapability!>: the updated capabilities. This value cannot be null.

onPictureProfileAdded

open fun onPictureProfileAdded(
    profileId: String,
    profile: PictureProfile
): Unit

This is invoked when a picture profile has been added.

Parameters
profileId String: the ID of the profile. This value cannot be null.
profile PictureProfile: the newly added profile. This value cannot be null.

onPictureProfileRemoved

open fun onPictureProfileRemoved(
    profileId: String,
    profile: PictureProfile
): Unit

This is invoked when a picture profile has been removed.

Parameters
profileId String: the ID of the profile. This value cannot be null.
profile PictureProfile: the removed profile. This value cannot be null.

onPictureProfileUpdated

open fun onPictureProfileUpdated(
    profileId: String,
    profile: PictureProfile
): Unit

This is invoked when a picture profile has been updated.

Parameters
profileId String: the ID of the profile. This value cannot be null.
profile PictureProfile: the profile with updated info. This value cannot be null.