Package com.zendesk.connect
Class TouchInterceptor
- java.lang.Object
-
- com.zendesk.connect.TouchInterceptor
-
public class TouchInterceptor extends java.lang.Object
Created by jophde on 5/1/15.android.view.Window.Callback
that receives the host app's touch events. Responsible for determining if the admin mode should be enabled.
-
-
Constructor Summary
Constructors Constructor and Description TouchInterceptor(com.zendesk.connect.TouchInterceptor.TouchInterceptionListener listener, Window.Callback localCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
dispatchGenericMotionEvent(MotionEvent motionEvent)
boolean
dispatchKeyEvent(KeyEvent keyEvent)
boolean
dispatchKeyShortcutEvent(KeyEvent keyEvent)
boolean
dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent)
boolean
dispatchTouchEvent(MotionEvent motionEvent)
boolean
dispatchTrackballEvent(MotionEvent motionEvent)
void
onActionModeFinished(ActionMode actionMode)
void
onActionModeStarted(ActionMode actionMode)
void
onAttachedToWindow()
void
onContentChanged()
boolean
onCreatePanelMenu(int featureId, Menu menu)
View
onCreatePanelView(int featureId)
void
onDetachedFromWindow()
boolean
onMenuItemSelected(int featureId, MenuItem menuItem)
boolean
onMenuOpened(int featureId, Menu menu)
void
onPanelClosed(int featureId, Menu menu)
boolean
onPreparePanel(int featureId, View view, Menu menu)
boolean
onSearchRequested()
boolean
onSearchRequested(SearchEvent searchEvent)
void
onWindowAttributesChanged(WindowManager.LayoutParams layoutParams)
void
onWindowFocusChanged(boolean hasFocus)
ActionMode
onWindowStartingActionMode(ActionMode.Callback callback)
ActionMode
onWindowStartingActionMode(ActionMode.Callback callback, int featureId)
-
-
-
Method Detail
-
dispatchKeyEvent
public boolean dispatchKeyEvent(KeyEvent keyEvent)
-
dispatchKeyShortcutEvent
public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent)
-
dispatchTouchEvent
public boolean dispatchTouchEvent(MotionEvent motionEvent)
-
dispatchTrackballEvent
public boolean dispatchTrackballEvent(MotionEvent motionEvent)
-
dispatchGenericMotionEvent
public boolean dispatchGenericMotionEvent(MotionEvent motionEvent)
-
dispatchPopulateAccessibilityEvent
public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent)
-
onCreatePanelView
public View onCreatePanelView(int featureId)
-
onCreatePanelMenu
public boolean onCreatePanelMenu(int featureId, Menu menu)
-
onPreparePanel
public boolean onPreparePanel(int featureId, View view, Menu menu)
-
onMenuOpened
public boolean onMenuOpened(int featureId, Menu menu)
-
onMenuItemSelected
public boolean onMenuItemSelected(int featureId, MenuItem menuItem)
-
onWindowAttributesChanged
public void onWindowAttributesChanged(WindowManager.LayoutParams layoutParams)
-
onContentChanged
public void onContentChanged()
-
onWindowFocusChanged
public void onWindowFocusChanged(boolean hasFocus)
-
onAttachedToWindow
public void onAttachedToWindow()
-
onDetachedFromWindow
public void onDetachedFromWindow()
-
onPanelClosed
public void onPanelClosed(int featureId, Menu menu)
-
onSearchRequested
public boolean onSearchRequested()
-
onSearchRequested
public boolean onSearchRequested(SearchEvent searchEvent)
-
onWindowStartingActionMode
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback)
-
onWindowStartingActionMode
public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int featureId)
-
onActionModeStarted
public void onActionModeStarted(ActionMode actionMode)
-
onActionModeFinished
public void onActionModeFinished(ActionMode actionMode)
-
-