# ViewPresentation

@RequiresApi(value = 17)
class ViewPresentation(context: Context, display: Display) : Presentation

## Constructors

ViewPresentation
Link copied to clipboard
constructor(context: Context, display: Display)

## Properties

actionBar
Link copied to clipboard
open val actionBar: ActionBar?
context
Link copied to clipboard
val context: Context
currentFocus
Link copied to clipboard
open val currentFocus: View?
display
Link copied to clipboard
open val display: Display?
isShowing
Link copied to clipboard
open val isShowing: Boolean
layoutInflater
Link copied to clipboard
open val layoutInflater: LayoutInflater
onBackInvokedDispatcher
Link copied to clipboard
open val onBackInvokedDispatcher: OnBackInvokedDispatcher
ownerActivity
Link copied to clipboard
val ownerActivity: Activity?
resources
Link copied to clipboard
open val resources: Resources?
searchEvent
Link copied to clipboard
val searchEvent: SearchEvent?
volumeControlStream
Link copied to clipboard
var volumeControlStream: Int
window
Link copied to clipboard
open val window: Window?

## Functions

addContentView
Link copied to clipboard
open fun addContentView(view: View, params: ViewGroup.LayoutParams?)
cancel
Link copied to clipboard
open fun cancel()
closeOptionsMenu
Link copied to clipboard
open fun closeOptionsMenu()
create
Link copied to clipboard
open fun create()
dismiss
Link copied to clipboard
open fun dismiss()
dispatchGenericMotionEvent
Link copied to clipboard
open fun dispatchGenericMotionEvent(ev: MotionEvent): Boolean
dispatchKeyEvent
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent): Boolean
dispatchKeyShortcutEvent
Link copied to clipboard
open fun dispatchKeyShortcutEvent(event: KeyEvent): Boolean
dispatchPopulateAccessibilityEvent
Link copied to clipboard
open fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean
dispatchTouchEvent
Link copied to clipboard
open fun dispatchTouchEvent(ev: MotionEvent): Boolean
dispatchTrackballEvent
Link copied to clipboard
open fun dispatchTrackballEvent(ev: MotionEvent): Boolean
findViewById
Link copied to clipboard
open fun <T : View?> findViewById(id: Int): T?
hide
Link copied to clipboard
open fun hide()
invalidateOptionsMenu
Link copied to clipboard
open fun invalidateOptionsMenu()
onActionModeFinished
Link copied to clipboard
open fun onActionModeFinished(mode: ActionMode?)
onActionModeStarted
Link copied to clipboard
open fun onActionModeStarted(mode: ActionMode?)
onAttachedToWindow
Link copied to clipboard
open fun onAttachedToWindow()
onBackPressed
Link copied to clipboard
open fun onBackPressed()
onContentChanged
Link copied to clipboard
open fun onContentChanged()
onContextItemSelected
Link copied to clipboard
open fun onContextItemSelected(item: MenuItem): Boolean
onContextMenuClosed
Link copied to clipboard
open fun onContextMenuClosed(menu: Menu)
onCreateContextMenu
Link copied to clipboard
open fun onCreateContextMenu(menu: ContextMenu?, v: View?, menuInfo: ContextMenu.ContextMenuInfo?)
onCreateOptionsMenu
Link copied to clipboard
open fun onCreateOptionsMenu(menu: Menu): Boolean
onCreatePanelMenu
Link copied to clipboard
open fun onCreatePanelMenu(featureId: Int, menu: Menu): Boolean
onCreatePanelView
Link copied to clipboard
open fun onCreatePanelView(featureId: Int): View?
onDetachedFromWindow
Link copied to clipboard
open fun onDetachedFromWindow()
onDisplayChanged
Link copied to clipboard
open fun onDisplayChanged()
onDisplayRemoved
Link copied to clipboard
open fun onDisplayRemoved()
onGenericMotionEvent
Link copied to clipboard
open fun onGenericMotionEvent(event: MotionEvent): Boolean
onKeyDown
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean
onKeyLongPress
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent): Boolean
onKeyMultiple
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent): Boolean
onKeyShortcut
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent): Boolean
onKeyUp
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean
onMenuItemSelected
Link copied to clipboard
open fun onMenuItemSelected(featureId: Int, item: MenuItem): Boolean
onMenuOpened
Link copied to clipboard
open fun onMenuOpened(featureId: Int, menu: Menu): Boolean
onOptionsItemSelected
Link copied to clipboard
open fun onOptionsItemSelected(item: MenuItem): Boolean
onOptionsMenuClosed
Link copied to clipboard
open fun onOptionsMenuClosed(menu: Menu)
onPanelClosed
Link copied to clipboard
open fun onPanelClosed(featureId: Int, menu: Menu)
onPointerCaptureChanged
Link copied to clipboard
open fun onPointerCaptureChanged(hasCapture: Boolean)
onPrepareOptionsMenu
Link copied to clipboard
open fun onPrepareOptionsMenu(menu: Menu): Boolean
onPreparePanel
Link copied to clipboard
open fun onPreparePanel(featureId: Int, view: View?, menu: Menu): Boolean
onProvideKeyboardShortcuts
Link copied to clipboard
open fun onProvideKeyboardShortcuts(data: List<KeyboardShortcutGroup?>?, menu: Menu?, deviceId: Int)
onRestoreInstanceState
Link copied to clipboard
open fun onRestoreInstanceState(savedInstanceState: Bundle)
onSaveInstanceState
Link copied to clipboard
open fun onSaveInstanceState(): Bundle
onSearchRequested
Link copied to clipboard
open fun onSearchRequested(): Boolean
open fun onSearchRequested(searchEvent: SearchEvent): Boolean
onTouchEvent
Link copied to clipboard
open fun onTouchEvent(event: MotionEvent): Boolean
onTrackballEvent
Link copied to clipboard
open fun onTrackballEvent(event: MotionEvent): Boolean
onWindowAttributesChanged
Link copied to clipboard
open fun onWindowAttributesChanged(params: WindowManager.LayoutParams?)
onWindowFocusChanged
Link copied to clipboard
open fun onWindowFocusChanged(hasFocus: Boolean)
onWindowStartingActionMode
Link copied to clipboard
open fun onWindowStartingActionMode(callback: ActionMode.Callback?): ActionMode?
open fun onWindowStartingActionMode(callback: ActionMode.Callback?, type: Int): ActionMode?
openContextMenu
Link copied to clipboard
open fun openContextMenu(view: View)
openOptionsMenu
Link copied to clipboard
open fun openOptionsMenu()
registerForContextMenu
Link copied to clipboard
open fun registerForContextMenu(view: View)
requestWindowFeature
Link copied to clipboard
fun requestWindowFeature(featureId: Int): Boolean
requireViewById
Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T & Any
setCancelable
Link copied to clipboard
open fun setCancelable(flag: Boolean)
setCanceledOnTouchOutside
Link copied to clipboard
open fun setCanceledOnTouchOutside(cancel: Boolean)
setCancelMessage
Link copied to clipboard
open fun setCancelMessage(msg: Message?)
setContentView
Link copied to clipboard
open fun setContentView(layoutResID: Int)
open override fun setContentView(view: View)
open override fun setContentView(view: View, params: ViewGroup.LayoutParams?)
setDismissMessage
Link copied to clipboard
open fun setDismissMessage(msg: Message?)
setFeatureDrawable
Link copied to clipboard
fun setFeatureDrawable(featureId: Int, drawable: Drawable?)
setFeatureDrawableAlpha
Link copied to clipboard
fun setFeatureDrawableAlpha(featureId: Int, alpha: Int)
setFeatureDrawableResource
Link copied to clipboard
fun setFeatureDrawableResource(featureId: Int, resId: Int)
setFeatureDrawableUri
Link copied to clipboard
fun setFeatureDrawableUri(featureId: Int, uri: Uri?)
setOnCancelListener
Link copied to clipboard
open fun setOnCancelListener(listener: DialogInterface.OnCancelListener?)
setOnDismissListener
Link copied to clipboard
open fun setOnDismissListener(listener: DialogInterface.OnDismissListener?)
setOnKeyListener
Link copied to clipboard
open fun setOnKeyListener(onKeyListener: DialogInterface.OnKeyListener?)
setOnShowListener
Link copied to clipboard
open fun setOnShowListener(listener: DialogInterface.OnShowListener?)
setOwnerActivity
Link copied to clipboard
fun setOwnerActivity(activity: Activity)
setTitle
Link copied to clipboard
open fun setTitle(title: CharSequence?)
open fun setTitle(titleId: Int)
show
Link copied to clipboard
open fun show()
takeKeyEvents
Link copied to clipboard
open fun takeKeyEvents(get: Boolean)
unregisterForContextMenu
Link copied to clipboard
open fun unregisterForContextMenu(view: View)