Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
SdlRemoteDisplay

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

executor

protected final java.util.concurrent.ScheduledExecutorService executor

refreshTaskScheduledFuture

protected java.util.concurrent.ScheduledFuture refreshTaskScheduledFuture

uiHandler

protected final android.os.Handler uiHandler

callback

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

mStartRefreshTaskCallback

protected final java.lang.Runnable mStartRefreshTaskCallback

Constructors

SdlRemoteDisplay( Context context, Display display )

public SdlRemoteDisplay(Context context,Display display)

Constructor Parameters

context
display

Methods

onCreate( Bundle savedInstanceState )

protected void onCreate(Bundle savedInstanceState)

Method Parameters

savedInstanceState

startRefreshTask()

protected void startRefreshTask()

stopRefreshTask()

protected void stopRefreshTask()

getMainView()

public android.view.View getMainView()

invalidate()

public void invalidate()

resizeView( int newWidth, int newHeight )

public void resizeView(int newWidth,int newHeight)

Method Parameters

newWidth
newHeight

onViewResized( int width, int height )

public abstract void onViewResized(int width,int height)

Method Parameters

width
height

handleMotionEvent( MotionEvent motionEvent )

public void handleMotionEvent(MotionEvent motionEvent)

Method 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