MotionPhotoMetadata


@UnstableApi
class MotionPhotoMetadata : Metadata.Entry


Metadata of a motion photo file.

Summary

Public constructors

MotionPhotoMetadata(
    photoStartPosition: Long,
    photoSize: Long,
    photoPresentationTimestampUs: Long,
    videoStartPosition: Long,
    videoSize: Long
)

Creates an instance.

Public functions

Int
Boolean
equals(obj: Any?)
Int
String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Long

The presentation timestamp of the photo, in microseconds, or TIME_UNSET if unknown.

Long

The size of the photo data, in bytes.

Long

The start offset of the photo data, in bytes.

Long

The size of the video data, in bytes.

Long

The start offset of the video data, in bytes.

Inherited functions

From androidx.media3.common.Metadata.Entry
ByteArray<Byte>?

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

Format?

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

Unit

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

Constants

Public constructors

MotionPhotoMetadata

MotionPhotoMetadata(
    photoStartPosition: Long,
    photoSize: Long,
    photoPresentationTimestampUs: Long,
    videoStartPosition: Long,
    videoSize: Long
)

Creates an instance.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

photoPresentationTimestampUs

val photoPresentationTimestampUsLong

The presentation timestamp of the photo, in microseconds, or TIME_UNSET if unknown.

photoSize

val photoSizeLong

The size of the photo data, in bytes.

photoStartPosition

val photoStartPositionLong

The start offset of the photo data, in bytes.

videoSize

val videoSizeLong

The size of the video data, in bytes.

videoStartPosition

val videoStartPositionLong

The start offset of the video data, in bytes.