SubDestination

public abstract class SubDestination implements Parcelable


Sub-destinations related to the place. For example, different terminals are different destinations of an airport.

Summary

Nested types

public abstract class SubDestination.Builder

Builder for SubDestination.

Public constructors

Public methods

abstract String

Returns the place id of the sub-destination.

abstract String

Returns the resource name of the sub-destination.

static SubDestination

Creates a SubDestination with place resource name and place id.

Inherited Constants

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

Inherited methods

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

SubDestination

public SubDestination()

Public methods

getId

public abstract String getId()

Returns the place id of the sub-destination.

getName

public abstract String getName()

Returns the resource name of the sub-destination.

newInstance

public static SubDestination newInstance(String id, String name)

Creates a SubDestination with place resource name and place id.

Parameters
String id

The id of the sub-destination

String name

The resource name of the sub-destination