Page Summary
-
The
OptionsProviderinterface is for developers to implement to provide options for creating and initializingCastContext. -
Implementations of
OptionsProvidermust have a no-argument constructor, which the SDK uses for instantiation. -
The
getAdditionalSessionProvidersmethod provides an optional list of customSessionProviderinstances for non-Cast devices. -
The
getCastOptionsmethod providesCastOptionswhich influences discovery and session management for Cast devices and must not return null.
Developers should implement this interface to provide options needed to create and
initialize CastContext
.
The implementation class must have a constructor without argument. The SDK will call that
constructor to instantiate a new instance.
Public Method Summary
| abstract List < SessionProvider > | |
| abstract CastOptions |
Public Methods
public abstract List < SessionProvider > getAdditionalSessionProviders ( Context appContext)
Provides a list of custom SessionProvider
instances for non-Cast devices. This is optional.
Parameters
Returns
- the list of
SessionProviderinstances, may benull.
public abstract CastOptions getCastOptions ( Context appContext)
Provides CastOptions
,
which affects discovery and session management of a Cast device.
Parameters
Returns
- the
CastOptions, must not benull.

