This class is deprecated.The Remote Display feature is deprecated and will be removed in a future release.
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.
Inherited Constant Summary
Public Constructor Summary
* | CastPresentation
( Context
serviceContext, Display
display)
Creates a new cast presentation that is attached to the specified display using
the default theme.
|
* | CastPresentation
( Context
serviceContext, Display
display, int theme)
Creates a new cast presentation that is attached to the specified display using
the optionally specified theme.
|
Inherited Method Summary
Public Constructors
public CastPresentation ( Context serviceContext, Display display)
Creates a new cast presentation that is attached to the specified display using the default theme.
Parameters
serviceContext | The context of the service that is hosting the cast presentation. The cast
presentation will create its own context (see Dialog.getContext()
)
based on this context and information about the associated display. |
---|---|
display | The display to which the cast presentation should be attached. |
public CastPresentation ( Context serviceContext, Display display, int theme)
Creates a new cast presentation that is attached to the specified display using the optionally specified theme.
Parameters
serviceContext | The context of the service typically a CastRemoteDisplayLocalService
that is hosting the cast presentation. The
cast presentation will create its own context (see Dialog.getContext()
)
based on this context and information about the associated display. |
---|---|
display | The display to which the cast presentation should be attached. |
theme | 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. |