MotionPhotoMetadata


@UnstableApi
public final class MotionPhotoMetadata implements Metadata.Entry

Metadata of a motion photo file.

Summary

Public constructors

MotionPhotoMetadata(
 long photoStartPosition,
 long photoSize,
 long photoPresentationTimestampUs,
 long videoStartPosition,
 long videoSize
)

Creates an instance.

Public methods

boolean
int
String

Inherited methods

From androidx.media3.common.Metadata.Entry

Public fields

photoPresentationTimestampUs

public final long photoPresentationTimestampUs

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

photoSize

public final long photoSize

The size of the photo data, in bytes.

photoStartPosition

public final long photoStartPosition

The start offset of the photo data, in bytes.

videoSize

public final long videoSize

The size of the video data, in bytes.

videoStartPosition

public final long videoStartPosition

The start offset of the video data, in bytes.

Public constructors

MotionPhotoMetadata

public MotionPhotoMetadata(
 long photoStartPosition,
 long photoSize,
 long photoPresentationTimestampUs,
 long videoStartPosition,
 long videoSize
)

Creates an instance.

Public methods

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

toString

public String toString()