Mp4LocationData


@UnstableApi
class Mp4LocationData : Metadata.Entry


Stores MP4 location data.

Summary

Public constructors

Mp4LocationData(
    latitude: @FloatRange(from = "-90.0", to = 90.0) Float,
    longitude: @FloatRange(from = "-180.0", to = 180.0) Float
)

Creates an instance.

Public functions

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

Public properties

Float
Float

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

CREATOR

const val CREATORParcelable.Creator<Mp4LocationData!>!

Public constructors

Mp4LocationData

Mp4LocationData(
    latitude: @FloatRange(from = "-90.0", to = 90.0) Float,
    longitude: @FloatRange(from = "-180.0", to = 180.0) Float
)

Creates an instance.

Parameters
latitude: @FloatRange(from = "-90.0", to = 90.0) Float

The latitude, in degrees. Its value must be in the range [-90, 90].

longitude: @FloatRange(from = "-180.0", to = 180.0) Float

The longitude, in degrees. Its value must be in the range [-180, 180].

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

latitude

val latitudeFloat

longitude

val longitudeFloat