Mp4LocationData


@UnstableApi
public final class Mp4LocationData implements Metadata.Entry


Stores MP4 location data.

Summary

Constants

static final Parcelable.Creator<Mp4LocationData>

Public fields

final float
final float

Public constructors

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

Creates an instance.

Public methods

int
boolean
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

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

@Nullable 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.

void

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

Constants

CREATOR

public static final Parcelable.Creator<Mp4LocationDataCREATOR

Public fields

latitude

public final float latitude

longitude

public final float longitude

Public constructors

Mp4LocationData

public Mp4LocationData(
    @FloatRange(from = "-90.0", to = 90.0) float latitude,
    @FloatRange(from = "-180.0", to = 180.0) float longitude
)

Creates an instance.

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

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

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

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

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)