java.lang.Object | |||
↳ | android.app.Dialog | ||
↳ | android.app.Presentation | ||
↳ | com.google.android.gms.cast.CastPresentation |
Base class for Presentation
s suitable to be used with Cast Remote Display sessions.
This class should be instantiated from within a Service
, such as
CastRemoteDisplayLocalService
.
The CastPresentation is an extension of Presentation
. The difference is that the
CastPresentation decouples the Activity
window from the CastPresentation
window.
This enables an application to continue rendering onto the remote display, while its
Activity
is in the background.
[Expand]
Inherited Constants | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new cast presentation that is attached to the specified display
using the default theme.
| |||||||||||
Creates a new cast presentation that is attached to the specified display
using the optionally specified theme.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Creates a new cast presentation that is attached to the specified display using the default theme.
Parameters | |
---|---|
serviceContext |
Context :
The context of the service that is hosting the cast presentation.
The cast presentation will create its own context (see getContext() ) based
on this context and information about the associated display. |
display |
Display :
The display to which the cast presentation should be attached.
|
Creates a new cast presentation that is attached to the specified display using the optionally specified theme.
Parameters | |
---|---|
serviceContext |
Context :
The context of the service typically a
CastRemoteDisplayLocalService that is hosting the
cast presentation.
The cast presentation will create its own context (see getContext() ) based
on this context and information about the associated display. |
display |
Display :
The display to which the cast presentation should be attached. |
theme |
int :
A style resource describing the theme to use for the window.
See
Style and Theme Resources for more information about defining and using
styles. This theme is applied on top of the current theme in
outerContext. If 0, the default cast presentation theme will be used.
|