RouteListingPreference.Item.Builder


public static final class RouteListingPreference.Item.Builder
extends Object

java.lang.Object
   ↳ android.media.RouteListingPreference.Item.Builder


Builder for Item.

Summary

Public constructors

Builder(String routeId)

Constructor.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

Builder

Added in API level 34
public Builder (String routeId)

Constructor.

Parameters
routeId String: See Item.getRouteId(). This value cannot be null.

Public methods

build

Added in API level 34
public RouteListingPreference.Item build ()

Creates and returns a new Item with the given parameters.

Returns
RouteListingPreference.Item This value cannot be null.

setCustomSubtextMessage

Added in API level 34
public RouteListingPreference.Item.Builder setCustomSubtextMessage (CharSequence customSubtextMessage)

See Item.getCustomSubtextMessage().

The default value is null.

Parameters
customSubtextMessage CharSequence: This value may be null.

setFlags

Added in API level 34
public RouteListingPreference.Item.Builder setFlags (int flags)

See Item.getFlags().

The default value is zero (no flags).

Parameters
flags int

Returns
RouteListingPreference.Item.Builder This value cannot be null.

setSelectionBehavior

Added in API level 34
public RouteListingPreference.Item.Builder setSelectionBehavior (int selectionBehavior)

See Item.getSelectionBehavior().

The default value is RouteListingPreference.ACTION_TRANSFER_MEDIA.

Parameters
selectionBehavior int

Returns
RouteListingPreference.Item.Builder This value cannot be null.

setSubText

Added in API level 34
public RouteListingPreference.Item.Builder setSubText (int subText)

See Item.getSubText().

The default value is RouteListingPreference.Item.SUBTEXT_NONE.

Parameters
subText int

Returns
RouteListingPreference.Item.Builder This value cannot be null.