com.google.android.gms.cast.CastRemoteDisplayLocalService.Callbacks |
Callbacks for the Cast Remote Display session initiated using
CastRemoteDisplayLocalService
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when the Cast Remote Display session could not be successfully created.
| |||||||||||
Called when the Cast Remote Display session has been successfully created.
| |||||||||||
Called when the local service has been created.
|
Called when the Cast Remote Display session could not be successfully created.
Parameters | |
---|---|
status |
Status :
The reason why an error occurred establishing the Cast Remote
Display session. The possible set of error codes are
ERROR_SERVICE_CREATION_FAILED and
ERROR_SERVICE_DISCONNECTED .
|
Called when the Cast Remote Display session has been successfully created. It will be
called before the invoking onCreatePresentation(Display)
. In
this way, the service could be configured (if needed) before the
CastPresentation
is started.
Parameters | |
---|---|
service |
CastRemoteDisplayLocalService :
This instance of the service.
|
Called when the local service has been created. In most scenarios applications can simply ignore this callback. However, for optimization reasons, some applications may want to start some initialization in the context of the local service as soon as it is created, while the Cast Remote Display session is still starting. Another possible use case is updating the custom notification with a notification that uses the service context.
Parameters | |
---|---|
service |
CastRemoteDisplayLocalService :
This instance of the service.
|