Metadata.Builder


public final class Metadata.Builder


A builder for Metadata.

Public constructors

Returns an empty Builder instance.

Returns a new Builder with the data from the given Metadata instance.

Public methods

@NonNull Metadata

Returns a Metadata instance defined by this builder.

@NonNull Metadata.Builder

Sets a Place used for showing Distance and PlaceMarker information.

Public constructors

Builder

Added in 1.0.0
public Builder()

Returns an empty Builder instance.

Builder

Added in 1.0.0
public Builder(@NonNull Metadata metadata)

Returns a new Builder with the data from the given Metadata instance.

Throws
java.lang.NullPointerException

if icon is null

Public methods

build

Added in 1.0.0
public @NonNull Metadata build()

Returns a Metadata instance defined by this builder.

setPlace

Added in 1.0.0
public @NonNull Metadata.Builder setPlace(@NonNull Place place)

Sets a Place used for showing Distance and PlaceMarker information.

Throws
java.lang.NullPointerException

if place is null

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024

Provide more relevant information to users based on their location and device sensors, after checking that users have granted the necessary permissions.

Updated Jan 9, 2025

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024