Android APIs
public static final class

CastRemoteDisplay.CastRemoteDisplayOptions.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.cast.CastRemoteDisplay.CastRemoteDisplayOptions.Builder

Class Overview

A builder to create an instance of CastRemoteDisplay.CastRemoteDisplayOptions to set API configuration parameters for CastRemoteDisplay.

Summary

Public Constructors
CastRemoteDisplay.CastRemoteDisplayOptions.Builder(CastDevice castDevice, CastRemoteDisplay.CastRemoteDisplaySessionCallbacks callbacks)
Creates a builder of CastRemoteDisplay.CastRemoteDisplayOptions that configures the Cast remote display API to connect to a Google Cast device.
Public Methods
CastRemoteDisplay.CastRemoteDisplayOptions build()
Builds a CastOptions with the arguments supplied to this builder.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CastRemoteDisplay.CastRemoteDisplayOptions.Builder (CastDevice castDevice, CastRemoteDisplay.CastRemoteDisplaySessionCallbacks callbacks)

Creates a builder of CastRemoteDisplay.CastRemoteDisplayOptions that configures the Cast remote display API to connect to a Google Cast device.

Parameters
castDevice The Cast receiver device returned from the MediaRouter. May not be null.
callbacks The callbacks for Cast Remote Display session events. May not be null.
Returns
  • A builder for the Cast Remote Display API options.

Public Methods

public CastRemoteDisplay.CastRemoteDisplayOptions build ()

Builds a CastOptions with the arguments supplied to this builder.