Builder
class Builder
| kotlin.Any | |
| ↳ | android.media.metrics.EditingEndedEvent.Builder | 
Builder for EditingEndedEvent
Summary
| Public constructors | |
|---|---|
| Creates a new Builder. | |
| Public methods | |
|---|---|
| EditingEndedEvent.Builder | addInputMediaItemInfo(mediaItemInfo: MediaItemInfo)Adds information about a media item that was input to the editing operation. | 
| EditingEndedEvent.Builder | addOperationType(operationType: Long)Adds an operation type to the set of operations performed. | 
| EditingEndedEvent | build()Builds an instance. | 
| EditingEndedEvent.Builder | setErrorCode(value: Int)Sets the error code for a failed editing session. | 
| EditingEndedEvent.Builder | setExporterName(exporterName: String)The name of the library implementing the exporting operation. | 
| EditingEndedEvent.Builder | setFinalProgressPercent(finalProgressPercent: Float)Sets the progress of the editing operation in percent at the moment that it ended. | 
| EditingEndedEvent.Builder | setMetricsBundle(metricsBundle: Bundle)Sets metrics-related information that is not supported by dedicated methods. | 
| EditingEndedEvent.Builder | setMuxerName(muxerName: String)The name of the library implementing the media muxing operation. | 
| EditingEndedEvent.Builder | setOutputMediaItemInfo(mediaItemInfo: MediaItemInfo)Sets information about the output media item. | 
| EditingEndedEvent.Builder | setTimeSinceCreatedMillis(timeSinceCreatedMillis: Long)Sets the elapsed time since creating the editing session, in milliseconds. | 
Public constructors
Builder
Builder(finalState: Int)
Creates a new Builder.
| Parameters | |
|---|---|
| finalState | Int: The state of the editing session when it ended. Value is android.media.metrics.EditingEndedEvent#FINAL_STATE_SUCCEEDED,android.media.metrics.EditingEndedEvent#FINAL_STATE_CANCELED, orandroid.media.metrics.EditingEndedEvent#FINAL_STATE_ERROR | 
Public methods
addInputMediaItemInfo
fun addInputMediaItemInfo(mediaItemInfo: MediaItemInfo): EditingEndedEvent.Builder
Adds information about a media item that was input to the editing operation.
| Parameters | |
|---|---|
| mediaItemInfo | MediaItemInfo: This value cannot be null. | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
addOperationType
fun addOperationType(operationType: Long): EditingEndedEvent.Builder
Adds an operation type to the set of operations performed.
| Parameters | |
|---|---|
| operationType | Long: A type of operation performed as part of this editing operation. Value is either 0or a combination ofandroid.media.metrics.EditingEndedEvent#OPERATION_TYPE_VIDEO_TRANSCODE,android.media.metrics.EditingEndedEvent#OPERATION_TYPE_AUDIO_TRANSCODE,android.media.metrics.EditingEndedEvent#OPERATION_TYPE_VIDEO_EDIT,android.media.metrics.EditingEndedEvent#OPERATION_TYPE_AUDIO_EDIT,android.media.metrics.EditingEndedEvent#OPERATION_TYPE_VIDEO_TRANSMUX,android.media.metrics.EditingEndedEvent#OPERATION_TYPE_AUDIO_TRANSMUX,android.media.metrics.EditingEndedEvent#OPERATION_TYPE_PAUSED, andandroid.media.metrics.EditingEndedEvent#OPERATION_TYPE_RESUMED | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
build
fun build(): EditingEndedEvent
Builds an instance.
| Return | |
|---|---|
| EditingEndedEvent | This value cannot be null. | 
setErrorCode
fun setErrorCode(value: Int): EditingEndedEvent.Builder
Sets the error code for a failed editing session.
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
setExporterName
fun setExporterName(exporterName: String): EditingEndedEvent.Builder
The name of the library implementing the exporting operation. For example, a Maven artifact ID like "androidx.media3.media3-transformer:1.3.0-beta01".
| Parameters | |
|---|---|
| exporterName | String: The name of the library implementing the export operation. This value cannot be null. | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
See Also
setFinalProgressPercent
fun setFinalProgressPercent(finalProgressPercent: Float): EditingEndedEvent.Builder
Sets the progress of the editing operation in percent at the moment that it ended.
| Parameters | |
|---|---|
| finalProgressPercent | Float: The progress of the editing operation in percent at the moment that it ended. Value is between 0.0f and 100.0f inclusive | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
See Also
setMetricsBundle
fun setMetricsBundle(metricsBundle: Bundle): EditingEndedEvent.Builder
Sets metrics-related information that is not supported by dedicated methods.
Used for backwards compatibility by the metrics infrastructure.
| Parameters | |
|---|---|
| metricsBundle | Bundle: This value cannot be null. | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
setMuxerName
fun setMuxerName(muxerName: String): EditingEndedEvent.Builder
The name of the library implementing the media muxing operation. For example, a Maven artifact ID like "androidx.media3.media3-muxer:1.3.0-beta01".
| Parameters | |
|---|---|
| muxerName | String: The name of the library implementing the media muxing operation. This value cannot be null. | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
See Also
setOutputMediaItemInfo
fun setOutputMediaItemInfo(mediaItemInfo: MediaItemInfo): EditingEndedEvent.Builder
Sets information about the output media item.
| Parameters | |
|---|---|
| mediaItemInfo | MediaItemInfo: This value cannot be null. | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
setTimeSinceCreatedMillis
fun setTimeSinceCreatedMillis(timeSinceCreatedMillis: Long): EditingEndedEvent.Builder
Sets the elapsed time since creating the editing session, in milliseconds.
| Parameters | |
|---|---|
| timeSinceCreatedMillis | Long: The elapsed time since creating the editing session, in milliseconds, or TIME_SINCE_CREATED_UNKNOWNif unknown. Value isandroid.media.metrics.EditingEndedEvent#TIME_SINCE_CREATED_UNKNOWNor greater | 
| Return | |
|---|---|
| EditingEndedEvent.Builder | This value cannot be null. | 
See Also
