Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class SdlRemoteDisplay

Hierarchy

java.lang.Object
     android.app.Dialog
         android.app.Presentation

Package
com.smartdevicelink.streaming.video

Overview

SdlRemoteDisplay is an abstract class that should be extended by developers to creat their remote displays. All logic for UI events can be stored in their extension.

NOTE: When the UI changes (buttons appear, layouts change, etc) the developer should call {@link #invalidate()} to alert any other interfaces that are listening for those types of events.

Fields

w

protected android.view.Window w

mainView

protected android.view.View mainView

handler

protected android.os.Handler handler

uiHandler

protected android.os.Handler uiHandler

callback

protected com.smartdevicelink.streaming.video.SdlRemoteDisplay.Callback callback

mStartRefreshTaskCallback

protected java.lang.Runnable mStartRefreshTaskCallback

Constructors

SdlRemoteDisplay( Context context, Display display )

public SdlRemoteDisplay(Context context,Display display)

Parameters

context
display

Methods

onCreate( Bundle savedInstanceState )

protected void onCreate(Bundle savedInstanceState)

Parameters

savedInstanceState

startRefreshTask()

protected void startRefreshTask()

stopRefreshTask()

protected void stopRefreshTask()

getMainView()

public android.view.View getMainView()

invalidate()

public void invalidate()

handleMotionEvent( MotionEvent motionEvent )

public void handleMotionEvent(MotionEvent motionEvent)

Parameters

motionEvent

stop()

public void stop()

dismissPresentation()

public void dismissPresentation()

Inherited Methods

From Class Methods
android.app.Presentation getDisplay, getResources, onStart, onStop, show, onDisplayRemoved, onDisplayChanged
android.app.Dialog getContext, getActionBar, setOwnerActivity, getOwnerActivity, isShowing, create, show, hide, dismiss, onCreate, onStart, onStop, onSaveInstanceState, onRestoreInstanceState, getWindow, getCurrentFocus, findViewById, setContentView, setContentView, setContentView, addContentView, setTitle, setTitle, onKeyDown, onKeyLongPress, onKeyUp, onKeyMultiple, onBackPressed, onKeyShortcut, onTouchEvent, onTrackballEvent, onGenericMotionEvent, onWindowAttributesChanged, onContentChanged, onWindowFocusChanged, onAttachedToWindow, onDetachedFromWindow, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchTouchEvent, dispatchTrackballEvent, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, onCreatePanelView, onCreatePanelMenu, onPreparePanel, onMenuOpened, onMenuItemSelected, onPanelClosed, onCreateOptionsMenu, onPrepareOptionsMenu, onOptionsItemSelected, onOptionsMenuClosed, openOptionsMenu, closeOptionsMenu, invalidateOptionsMenu, onCreateContextMenu, registerForContextMenu, unregisterForContextMenu, openContextMenu, onContextItemSelected, onContextMenuClosed, onSearchRequested, onSearchRequested, getSearchEvent, onWindowStartingActionMode, onWindowStartingActionMode, onActionModeStarted, onActionModeFinished, takeKeyEvents, requestWindowFeature, setFeatureDrawableResource, setFeatureDrawableUri, setFeatureDrawable, setFeatureDrawableAlpha, getLayoutInflater, setCancelable, setCanceledOnTouchOutside, cancel, setOnCancelListener, setCancelMessage, setOnDismissListener, setOnShowListener, setDismissMessage, setVolumeControlStream, getVolumeControlStream, setOnKeyListener
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section