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