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
int | BUTTON1 | |
int | BUTTON2 | |
int | BUTTON3 | |
int | BUTTON_NEGATIVE | |
int | BUTTON_NEUTRAL | |
int | BUTTON_POSITIVE |
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
void | |
void |
cancel()
|
void |
closeOptionsMenu()
|
void |
create()
|
void |
dismiss()
|
boolean |
dispatchGenericMotionEvent(MotionEvent
arg0)
|
boolean |
dispatchKeyEvent(KeyEvent
arg0)
|
boolean |
dispatchKeyShortcutEvent(KeyEvent
arg0)
|
boolean |
dispatchPopulateAccessibilityEvent(AccessibilityEvent
arg0)
|
boolean |
dispatchTouchEvent(MotionEvent
arg0)
|
boolean |
dispatchTrackballEvent(MotionEvent
arg0)
|
<T extends View> T |
findViewById(int arg0)
|
ActionBar |
getActionBar()
|
final Context |
getContext()
|
View |
getCurrentFocus()
|
LayoutInflater |
getLayoutInflater()
|
OnBackInvokedDispatcher |
getOnBackInvokedDispatcher()
|
final Activity |
getOwnerActivity()
|
final SearchEvent |
getSearchEvent()
|
final int |
getVolumeControlStream()
|
Window |
getWindow()
|
void |
hide()
|
void |
invalidateOptionsMenu()
|
boolean |
isShowing()
|
void |
onActionModeFinished(ActionMode
arg0)
|
void |
onActionModeStarted(ActionMode
arg0)
|
void |
onAttachedToWindow()
|
void |
onBackPressed()
|
void |
onContentChanged()
|
boolean |
onContextItemSelected(MenuItem
arg0)
|
void |
onContextMenuClosed(Menu arg0)
|
void |
onCreate(Bundle arg0)
|
void | |
boolean |
onCreateOptionsMenu(Menu arg0)
|
boolean |
onCreatePanelMenu(int arg0, Menu arg1)
|
View |
onCreatePanelView(int arg0)
|
void |
onDetachedFromWindow()
|
boolean |
onGenericMotionEvent(MotionEvent
arg0)
|
boolean |
onKeyDown(int arg0, KeyEvent
arg1)
|
boolean |
onKeyLongPress(int arg0, KeyEvent
arg1)
|
boolean |
onKeyMultiple(int arg0, int arg1, KeyEvent
arg2)
|
boolean |
onKeyShortcut(int arg0, KeyEvent
arg1)
|
boolean |
onKeyUp(int arg0, KeyEvent
arg1)
|
boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
boolean |
onMenuOpened(int arg0, Menu arg1)
|
boolean |
onOptionsItemSelected(MenuItem
arg0)
|
void |
onOptionsMenuClosed(Menu arg0)
|
void |
onPanelClosed(int arg0, Menu arg1)
|
boolean |
onPrepareOptionsMenu(Menu arg0)
|
boolean | |
void |
onRestoreInstanceState(Bundle arg0)
|
Bundle |
onSaveInstanceState()
|
boolean |
onSearchRequested(SearchEvent
arg0)
|
boolean |
onSearchRequested()
|
void |
onStart()
|
void |
onStop()
|
boolean |
onTouchEvent(MotionEvent
arg0)
|
boolean |
onTrackballEvent(MotionEvent
arg0)
|
void |
onWindowAttributesChanged(WindowManager.LayoutParams
arg0)
|
void |
onWindowFocusChanged(boolean arg0)
|
ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0)
|
ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0, int arg1)
|
void |
openContextMenu(View arg0)
|
void |
openOptionsMenu()
|
void |
registerForContextMenu(View arg0)
|
final boolean |
requestWindowFeature(int arg0)
|
final <T extends View> T |
requireViewById(int arg0)
|
void |
setCancelMessage(Message
arg0)
|
void |
setCancelable(boolean arg0)
|
void |
setCanceledOnTouchOutside(boolean arg0)
|
void |
setContentView(int arg0)
|
void | |
void |
setContentView(View arg0)
|
void |
setDismissMessage(Message
arg0)
|
final void |
setFeatureDrawable(int arg0,
Drawable arg1)
|
final void |
setFeatureDrawableAlpha(int arg0, int arg1)
|
final void |
setFeatureDrawableResource(int arg0, int arg1)
|
final void |
setFeatureDrawableUri(int arg0, Uri arg1)
|
void |
setOnCancelListener(DialogInterface.OnCancelListener
arg0)
|
void |
setOnDismissListener(DialogInterface.OnDismissListener
arg0)
|
void |
setOnKeyListener(DialogInterface.OnKeyListener
arg0)
|
void |
setOnShowListener(DialogInterface.OnShowListener
arg0)
|
final void |
setOwnerActivity(Activity
arg0)
|
void |
setTitle(CharSequence
arg0)
|
void |
setTitle(int arg0)
|
final void |
setVolumeControlStream(int arg0)
|
void |
show()
|
void |
takeKeyEvents(boolean arg0)
|
void |
unregisterForContextMenu(View arg0)
|
abstract void |
cancel()
|
abstract void |
dismiss()
|
abstract void |
abstract boolean |
dispatchGenericMotionEvent(MotionEvent
arg0)
|
abstract boolean |
dispatchKeyEvent(KeyEvent
arg0)
|
abstract boolean |
dispatchKeyShortcutEvent(KeyEvent
arg0)
|
abstract boolean |
dispatchPopulateAccessibilityEvent(AccessibilityEvent
arg0)
|
abstract boolean |
dispatchTouchEvent(MotionEvent
arg0)
|
abstract boolean |
dispatchTrackballEvent(MotionEvent
arg0)
|
abstract void |
onActionModeFinished(ActionMode
arg0)
|
abstract void |
onActionModeStarted(ActionMode
arg0)
|
abstract void |
onAttachedToWindow()
|
abstract void |
onContentChanged()
|
abstract boolean |
onCreatePanelMenu(int arg0, Menu arg1)
|
abstract View |
onCreatePanelView(int arg0)
|
abstract void |
onDetachedFromWindow()
|
abstract boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
abstract boolean |
onMenuOpened(int arg0, Menu arg1)
|
abstract void |
onPanelClosed(int arg0, Menu arg1)
|
void |
onPointerCaptureChanged(boolean arg0)
|
abstract boolean | |
void | |
abstract boolean |
onSearchRequested()
|
abstract boolean |
onSearchRequested(SearchEvent
arg0)
|
abstract void |
onWindowAttributesChanged(WindowManager.LayoutParams
arg0)
|
abstract void |
onWindowFocusChanged(boolean arg0)
|
abstract ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0)
|
abstract ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0, int arg1)
|
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. |