Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#nestedclasses) \| [Constants](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#constants) \| [Inherited Constants](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#inhconstants) \| [Fields](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#lfields) \| [Methods](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#inhmethods)

# EditingEndedEvent

*** ** * ** ***


`
public

final

class
EditingEndedEvent
`


`


`

`

extends https://developer.android.com/reference/android/media/metrics/Event


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.media.metrics.Event](https://developer.android.com/reference/android/media/metrics/Event) ||
|   | ↳ | android.media.metrics.EditingEndedEvent |

<br />

*** ** * ** ***

Event for an editing operation having ended.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent.Builder` Builder for `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent` |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_AUDIO_PROCESSING_FAILED` Caused by an audio processing failure. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_DECODER_INIT_FAILED` Caused by a decoder initialization failure. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_DECODING_FAILED` Caused by a failure while trying to decode media samples. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_DECODING_FORMAT_UNSUPPORTED` Caused by trying to decode content whose format is not supported. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_ENCODER_INIT_FAILED` Caused by an encoder initialization failure. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_ENCODING_FAILED` Caused by a failure while trying to encode media samples. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED` Caused by trying to encode content whose format is not supported. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_FAILED_RUNTIME_CHECK` Error code for unexpected runtime errors. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_BAD_HTTP_STATUS` Caused by an HTTP server returning an unexpected HTTP response status code. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED` Caused by failing to load data via cleartext HTTP, when the app's network security configuration does not permit it. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_FILE_NOT_FOUND` Caused by a non-existent file. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_NETWORK_CONNECTION_FAILED` Error code for network connection failures. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT` Error code for network timeouts. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_NO_PERMISSION` Caused by lack of permission to perform an IO operation. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE` Caused by reading data out of the data bounds. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_UNSPECIFIED` Error code for non-specific errors during input/output. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_MUXING_FAILED` Caused by a failure while muxing media samples. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_NONE` Special value representing that no error occurred. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED` Caused by a video frame processing failure. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_CANCELED` The editing operation was canceled. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_ERROR` The editing operation failed due to an error. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_SUCCEEDED` The editing operation was successful. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_AUDIO_EDIT` Input audio was edited. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_AUDIO_TRANSCODE` Input audio was decoded and re-encoded. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_AUDIO_TRANSMUX` Input audio samples were written (muxed) directly to the output file without transcoding. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_PAUSED` The editing operation was paused before it completed. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_RESUMED` The editing operation resumed a previous (paused) operation. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_VIDEO_EDIT` Input video was edited. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_VIDEO_TRANSCODE` Input video was decoded and re-encoded. |
| `long` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_VIDEO_TRANSMUX` Input video samples were written (muxed) directly to the output file without transcoding. |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#PROGRESS_PERCENT_UNKNOWN` Special value for unknown [final progress](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getFinalProgressPercent()). |
| `int` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#TIME_SINCE_CREATED_UNKNOWN` Special value for unknown [time since creation](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getTimeSinceCreatedMillis()). |

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/os/Parcelable` |---|---| | `int` | `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. | | `int` | `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/media/metrics/EditingEndedEvent>` | `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#CREATOR` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` int` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getErrorCode()() ` Returns the error code for a [failed](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_ERROR) editing session. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getExporterName()() ` Returns the name of the library implementing the exporting operation, for example, a Maven artifact ID like "androidx.media3.media3-transformer:1.3.0-beta01", or `null` if unknown. |
| ` float` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getFinalProgressPercent()() ` Returns the progress of the editing operation in percent at the moment that it ended, or `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#PROGRESS_PERCENT_UNKNOWN` if unknown. |
| ` int` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getFinalState()() ` Returns the state of the editing session when it ended. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/media/metrics/MediaItemInfo>` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getInputMediaItemInfos()() ` Gets information about the input media items, or an empty list if unspecified. |
| ` https://developer.android.com/reference/android/os/Bundle` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getMetricsBundle()() ` Gets metrics-related information that is not supported by dedicated methods. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getMuxerName()() ` Returns 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", or `null` if unknown. |
| ` long` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getOperationTypes()() ` Gets a set of flags describing the types of operations performed. |
| ` https://developer.android.com/reference/android/media/metrics/MediaItemInfo` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getOutputMediaItemInfo()() ` Gets information about the output media item, or `null` if unspecified. |
| ` long` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getTimeSinceCreatedMillis()() ` Gets the elapsed time since creating of the editing session, in milliseconds, or `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#TIME_SINCE_CREATED_UNKNOWN` if unknown. |
| ` int` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#hashCode()() ` Returns a hash code value for the object. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/android/media/metrics/Event ` |---|---| | ` https://developer.android.com/reference/android/os/Bundle` | ` https://developer.android.com/reference/android/media/metrics/Event#getMetricsBundle()() ` Gets metrics-related information that is not supported by dedicated methods. | | ` long` | ` https://developer.android.com/reference/android/media/metrics/Event#getTimeSinceCreatedMillis()() ` Gets time since the corresponding log session is created in millisecond. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` 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 https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` 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` | ` 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` | ` 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*. | ||
| From interface ` https://developer.android.com/reference/android/os/Parcelable ` |---|---| | ` abstract int` | ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. | | ` abstract void` | ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. | ||

## Constants

### ERROR_CODE_AUDIO_PROCESSING_FAILED

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

```
public static final int ERROR_CODE_AUDIO_PROCESSING_FAILED
```

Caused by an audio processing failure.

<br />

Constant Value:

18
(0x00000012)


### ERROR_CODE_DECODER_INIT_FAILED

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

```
public static final int ERROR_CODE_DECODER_INIT_FAILED
```

Caused by a decoder initialization failure.

<br />

Constant Value:

11
(0x0000000b)


### ERROR_CODE_DECODING_FAILED

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

```
public static final int ERROR_CODE_DECODING_FAILED
```

Caused by a failure while trying to decode media samples.

<br />

Constant Value:

12
(0x0000000c)


### ERROR_CODE_DECODING_FORMAT_UNSUPPORTED

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

```
public static final int ERROR_CODE_DECODING_FORMAT_UNSUPPORTED
```

Caused by trying to decode content whose format is not supported.

<br />

Constant Value:

13
(0x0000000d)


### ERROR_CODE_ENCODER_INIT_FAILED

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

```
public static final int ERROR_CODE_ENCODER_INIT_FAILED
```

Caused by an encoder initialization failure.

<br />

Constant Value:

14
(0x0000000e)


### ERROR_CODE_ENCODING_FAILED

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

```
public static final int ERROR_CODE_ENCODING_FAILED
```

Caused by a failure while trying to encode media samples.

<br />

Constant Value:

15
(0x0000000f)


### ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED

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

```
public static final int ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED
```

Caused by trying to encode content whose format is not supported.

<br />

Constant Value:

16
(0x00000010)


### ERROR_CODE_FAILED_RUNTIME_CHECK

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

```
public static final int ERROR_CODE_FAILED_RUNTIME_CHECK
```

Error code for unexpected runtime errors.

<br />

Constant Value:

2
(0x00000002)


### ERROR_CODE_IO_BAD_HTTP_STATUS

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

```
public static final int ERROR_CODE_IO_BAD_HTTP_STATUS
```

Caused by an HTTP server returning an unexpected HTTP response status code.

<br />

Constant Value:

6
(0x00000006)


### ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED

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

```
public static final int ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED
```

Caused by failing to load data via cleartext HTTP, when the app's network security
configuration does not permit it.

<br />

Constant Value:

9
(0x00000009)


### ERROR_CODE_IO_FILE_NOT_FOUND

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

```
public static final int ERROR_CODE_IO_FILE_NOT_FOUND
```

Caused by a non-existent file.

<br />

Constant Value:

7
(0x00000007)


### ERROR_CODE_IO_NETWORK_CONNECTION_FAILED

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

```
public static final int ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
```

Error code for network connection failures.

<br />

Constant Value:

4
(0x00000004)


### ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT

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

```
public static final int ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT
```

Error code for network timeouts.

<br />

Constant Value:

5
(0x00000005)


### ERROR_CODE_IO_NO_PERMISSION

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

```
public static final int ERROR_CODE_IO_NO_PERMISSION
```

Caused by lack of permission to perform an IO operation. For example, lack of permission to
access internet or external storage.

<br />

Constant Value:

8
(0x00000008)


### ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE

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

```
public static final int ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE
```

Caused by reading data out of the data bounds.

<br />

Constant Value:

10
(0x0000000a)


### ERROR_CODE_IO_UNSPECIFIED

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

```
public static final int ERROR_CODE_IO_UNSPECIFIED
```

Error code for non-specific errors during input/output.

<br />

Constant Value:

3
(0x00000003)


### ERROR_CODE_MUXING_FAILED

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

```
public static final int ERROR_CODE_MUXING_FAILED
```

Caused by a failure while muxing media samples.

<br />

Constant Value:

19
(0x00000013)


### ERROR_CODE_NONE

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

```
public static final int ERROR_CODE_NONE
```

Special value representing that no error occurred.

<br />

Constant Value:

1
(0x00000001)


### ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED

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

```
public static final int ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED
```

Caused by a video frame processing failure.

<br />

Constant Value:

17
(0x00000011)


### FINAL_STATE_CANCELED

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

```
public static final int FINAL_STATE_CANCELED
```

The editing operation was canceled.

<br />

Constant Value:

2
(0x00000002)


### FINAL_STATE_ERROR

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

```
public static final int FINAL_STATE_ERROR
```

The editing operation failed due to an error.

<br />

Constant Value:

3
(0x00000003)


### FINAL_STATE_SUCCEEDED

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

```
public static final int FINAL_STATE_SUCCEEDED
```

The editing operation was successful.

<br />

Constant Value:

1
(0x00000001)


### OPERATION_TYPE_AUDIO_EDIT

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

```
public static final long OPERATION_TYPE_AUDIO_EDIT
```

Input audio was edited.

<br />

Constant Value:

8
(0x0000000000000008)


### OPERATION_TYPE_AUDIO_TRANSCODE

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

```
public static final long OPERATION_TYPE_AUDIO_TRANSCODE
```

Input audio was decoded and re-encoded.

<br />

Constant Value:

2
(0x0000000000000002)


### OPERATION_TYPE_AUDIO_TRANSMUX

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

```
public static final long OPERATION_TYPE_AUDIO_TRANSMUX
```

Input audio samples were written (muxed) directly to the output file without transcoding.

<br />

Constant Value:

32
(0x0000000000000020)


### OPERATION_TYPE_PAUSED

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

```
public static final long OPERATION_TYPE_PAUSED
```

The editing operation was paused before it completed.

<br />

Constant Value:

64
(0x0000000000000040)


### OPERATION_TYPE_RESUMED

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

```
public static final long OPERATION_TYPE_RESUMED
```

The editing operation resumed a previous (paused) operation.

<br />

Constant Value:

128
(0x0000000000000080)


### OPERATION_TYPE_VIDEO_EDIT

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

```
public static final long OPERATION_TYPE_VIDEO_EDIT
```

Input video was edited.

<br />

Constant Value:

4
(0x0000000000000004)


### OPERATION_TYPE_VIDEO_TRANSCODE

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

```
public static final long OPERATION_TYPE_VIDEO_TRANSCODE
```

Input video was decoded and re-encoded.

<br />

Constant Value:

1
(0x0000000000000001)


### OPERATION_TYPE_VIDEO_TRANSMUX

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

```
public static final long OPERATION_TYPE_VIDEO_TRANSMUX
```

Input video samples were written (muxed) directly to the output file without transcoding.

<br />

Constant Value:

16
(0x0000000000000010)


### PROGRESS_PERCENT_UNKNOWN

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

```
public static final int PROGRESS_PERCENT_UNKNOWN
```

Special value for unknown [final progress](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getFinalProgressPercent()).

<br />

Constant Value:

-1
(0xffffffff)


### TIME_SINCE_CREATED_UNKNOWN

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

```
public static final int TIME_SINCE_CREATED_UNKNOWN
```

Special value for unknown [time since creation](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#getTimeSinceCreatedMillis()).

<br />

Constant Value:

-1
(0xffffffff)


## Fields

### CREATOR

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

```
public static final Creator<EditingEndedEvent> CREATOR
```

<br />

<br />

## Public methods

### describeContents

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

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

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

```
public boolean equals (Object o)
```

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


The `equals` method implements an equivalence relation
on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.


An equivalence relation partitions the elements it operates on
into *equivalence classes*; all the members of an
equivalence class are equal to each other. Members of an
equivalence class are substitutable for each other, at least
for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: This value may be `null`. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getErrorCode

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

```
public int getErrorCode ()
```

Returns the error code for a [failed](https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_ERROR) editing session.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_NONE` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_FAILED_RUNTIME_CHECK` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_UNSPECIFIED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_NETWORK_CONNECTION_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_BAD_HTTP_STATUS` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_FILE_NOT_FOUND` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_NO_PERMISSION` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_DECODER_INIT_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_DECODING_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_DECODING_FORMAT_UNSUPPORTED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_ENCODER_INIT_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_ENCODING_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_AUDIO_PROCESSING_FAILED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#ERROR_CODE_MUXING_FAILED` |

### getExporterName

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

```
public String getExporterName ()
```

Returns the name of the library implementing the exporting operation, for example, a Maven
artifact ID like "androidx.media3.media3-transformer:1.3.0-beta01", or `null` if
unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getFinalProgressPercent

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

```
public float getFinalProgressPercent ()
```

Returns the progress of the editing operation in percent at the moment that it ended, or
`https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#PROGRESS_PERCENT_UNKNOWN` if unknown.

<br />

| Returns ||
|---|---|
| `float` | <br /> |

### getFinalState

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

```
public int getFinalState ()
```

Returns the state of the editing session when it ended.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_SUCCEEDED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_CANCELED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#FINAL_STATE_ERROR` |

### getInputMediaItemInfos

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

```
public List<MediaItemInfo> getInputMediaItemInfos ()
```

Gets information about the input media items, or an empty list if unspecified.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/media/metrics/MediaItemInfo>` | This value cannot be `null`. <br /> |

### getMetricsBundle

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

```
public Bundle getMetricsBundle ()
```

Gets metrics-related information that is not supported by dedicated methods.

It is intended to be used for backwards compatibility by the metrics infrastructure.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/Bundle` | This value cannot be `null`. <br /> |

### getMuxerName

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

```
public String getMuxerName ()
```

Returns 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", or `null` if unknown.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getOperationTypes

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

```
public long getOperationTypes ()
```

Gets a set of flags describing the types of operations performed.

<br />

| Returns ||
|---|---|
| `long` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_VIDEO_TRANSCODE` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_AUDIO_TRANSCODE` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_VIDEO_EDIT` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_AUDIO_EDIT` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_VIDEO_TRANSMUX` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_AUDIO_TRANSMUX` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_PAUSED` - `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#OPERATION_TYPE_RESUMED` |

### getOutputMediaItemInfo

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

```
public MediaItemInfo getOutputMediaItemInfo ()
```

Gets information about the output media item, or `null` if unspecified.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/metrics/MediaItemInfo` | <br /> |

### getTimeSinceCreatedMillis

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

```
public long getTimeSinceCreatedMillis ()
```

Gets the elapsed time since creating of the editing session, in milliseconds, or `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#TIME_SINCE_CREATED_UNKNOWN` if unknown.

<br />

| Returns ||
|---|---|
| `long` | The elapsed time since creating the editing session, in milliseconds, or `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#TIME_SINCE_CREATED_UNKNOWN` if unknown. Value is `https://developer.android.com/reference/android/media/metrics/EditingEndedEvent#TIME_SINCE_CREATED_UNKNOWN` or greater <br /> |

**See also:**

- `https://developer.android.com/reference/android/media/metrics/LogSessionId`
- `https://developer.android.com/reference/android/media/metrics/EditingSession`

### hashCode

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

```
public int hashCode ()
```

Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
`https://developer.android.com/reference/java/util/HashMap`.


The general contract of `hashCode` is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result.
- It is *not* required that if two objects are unequal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

<br />

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this object. <br /> |

### toString

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

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value cannot be `null`. <br /> |

### writeToParcel

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

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |