Code example for AccessibilityManager

Methods: isEnabled, isTouchExplorationEnabled

0
     * 
     * @return {@code true} if touch exploration is enabled. 
     */ 
    public boolean isTouchExplorationEnabled() { 
        return ENABLE_ACCESSIBILITY
                && mAccessibilityManager.isEnabled()
                && mAccessibilityManager.isTouchExplorationEnabled();
    } 
 
    /** 
     * Returns {@true} if the provided event is a touch exploration (e.g. hover) 
     * event. This is used to determine whether the event should be processed by 
     * the touch exploration code within the keyboard. 
     * 
     * @param event The event to check. 
     * @return {@true} is the event is a touch exploration event 
     */ 
    public boolean isTouchExplorationEvent(MotionEvent event) {
        final int action = event.getAction();
 
        return action == MotionEvent.ACTION_HOVER_ENTER