Code example for AccessibilityManager

Methods: isEnabled

0
     * that the kill switch is off and system accessibility is turned on. 
     * 
     * @return {@code true} if accessibility is enabled. 
     */ 
    public boolean isAccessibilityEnabled() { 
        return ENABLE_ACCESSIBILITY && mAccessibilityManager.isEnabled();
    } 
 
    /** 
     * Returns {@code true} if touch exploration is enabled. Currently, this 
     * means that the kill switch is off, the device supports touch exploration, 
     * and system accessibility is turned on. 
     * 
     * @return {@code true} if touch exploration is enabled. 
     */ 
    public boolean isTouchExplorationEnabled() { 
        return isAccessibilityEnabled() && mAccessibilityManager.isTouchExplorationEnabled();
    } 
 
    /** 
     * Returns {@true} if the provided event is a touch exploration (e.g. hover)