public abstract class

CastPresentation

extends Presentation
java.lang.Object
   ↳ android.app.Dialog
     ↳ android.app.Presentation
       ↳ com.google.android.gms.cast.CastPresentation

Class Overview

Base class for Presentations 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.

Summary

[Expand]
Inherited Constants
From interface android.content.DialogInterface
Public Constructors
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.
[Expand]
Inherited Methods
From class android.app.Presentation
From class android.app.Dialog
From class java.lang.Object
From interface android.content.DialogInterface
From interface android.view.Window.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnCreateContextMenuListener

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 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.

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 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.