MediaQualityManager.PictureProfileCallback


public static abstract class MediaQualityManager.PictureProfileCallback
extends Object

java.lang.Object
   ↳ android.media.quality.MediaQualityManager.PictureProfileCallback


Callback used to monitor status of picture profiles

Summary

Public constructors

PictureProfileCallback()

Public methods

void onError(String profileId, int errorCode)

This is invoked when an issue has occurred.

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

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

void onPictureProfileAdded(String profileId, PictureProfile profile)

This is invoked when a picture profile has been added.

void onPictureProfileRemoved(String profileId, PictureProfile profile)

This is invoked when a picture profile has been removed.

void onPictureProfileUpdated(String profileId, PictureProfile profile)

This is invoked when a picture profile has been updated.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(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(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()

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

Public constructors

PictureProfileCallback

public PictureProfileCallback ()

Public methods

onError

public void onError (String profileId, 
                int errorCode)

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 PictureProfile.ERROR_UNKNOWN, PictureProfile.ERROR_NO_PERMISSION, PictureProfile.ERROR_DUPLICATE, PictureProfile.ERROR_INVALID_ARGUMENT, or PictureProfile.ERROR_NOT_ALLOWLISTED

onParameterCapabilitiesChanged

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

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 List: the updated capabilities. This value cannot be null.

onPictureProfileAdded

public void onPictureProfileAdded (String profileId, 
                PictureProfile profile)

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

public void onPictureProfileRemoved (String profileId, 
                PictureProfile profile)

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

public void onPictureProfileUpdated (String profileId, 
                PictureProfile profile)

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.