MediaRouteProvider.RouteControllerOptions.Builder


class MediaRouteProvider.RouteControllerOptions.Builder


Builder for RouteControllerOptions.

Summary

Public constructors

Builder(
    routeControllerOptions: MediaRouteProvider.RouteControllerOptions
)

Copies the properties from the given RouteControllerOptions.

Public functions

MediaRouteProvider.RouteControllerOptions

Builds the RouteControllerOptions.

MediaRouteProvider.RouteControllerOptions.Builder
setClientPackageName(clientPackageName: String)

Sets the client package name for creating the route controller.

MediaRouteProvider.RouteControllerOptions.Builder
setControlHints(controlHints: Bundle?)

Sets controlHints passed by the client application.

Public constructors

Builder

Added in 1.8.0-beta01
Builder()

Builder

Added in 1.8.0-beta01
Builder(
    routeControllerOptions: MediaRouteProvider.RouteControllerOptions
)

Copies the properties from the given RouteControllerOptions.

The values are read from the given RouteControllerOptions but can be overridden with the other setters in the builder.

Public functions

setClientPackageName

Added in 1.8.0-beta01
fun setClientPackageName(clientPackageName: String): MediaRouteProvider.RouteControllerOptions.Builder

Sets the client package name for creating the route controller.

setControlHints

Added in 1.8.0-beta01
fun setControlHints(controlHints: Bundle?): MediaRouteProvider.RouteControllerOptions.Builder

Sets controlHints passed by the client application.