android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener Java Examples

The following examples show how to use android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AccessibilityManagerCompatIcs.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
public static Object newAccessibilityStateChangeListener(
        final AccessibilityStateChangeListenerBridge bridge) {
    return new AccessibilityStateChangeListener() {
        @Override
        public void onAccessibilityStateChanged(boolean enabled) {
            bridge.onAccessibilityStateChanged(enabled);
        }
    };
}
 
Example #2
Source File: AccessibilityManagerCompatIcs.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
public static Object newAccessibilityStateChangeListener(
        final AccessibilityStateChangeListenerBridge bridge) {
    return new AccessibilityStateChangeListener() {
        @Override
        public void onAccessibilityStateChanged(boolean enabled) {
            bridge.onAccessibilityStateChanged(enabled);
        }
    };
}
 
Example #3
Source File: AccessibilityManagerCompatIcs.java    From V.FlyoutTest with MIT License 5 votes vote down vote up
public static Object newAccessibilityStateChangeListener(
        final AccessibilityStateChangeListenerBridge bridge) {
    return new AccessibilityStateChangeListener() {
        @Override
        public void onAccessibilityStateChanged(boolean enabled) {
            bridge.onAccessibilityStateChanged(enabled);
        }
    };
}
 
Example #4
Source File: AccessibilityManagerCompatIcs.java    From guideshow with MIT License 5 votes vote down vote up
public static Object newAccessibilityStateChangeListener(
        final AccessibilityStateChangeListenerBridge bridge) {
    return new AccessibilityStateChangeListener() {
        @Override
        public void onAccessibilityStateChanged(boolean enabled) {
            bridge.onAccessibilityStateChanged(enabled);
        }
    };
}
 
Example #5
Source File: AccessibilityManagerCompatIcs.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static boolean addAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.addAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #6
Source File: AccessibilityManagerCompatIcs.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.removeAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #7
Source File: AccessibilityManagerCompatIcs.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static boolean addAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.addAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #8
Source File: AccessibilityManagerCompatIcs.java    From adt-leanback-support with Apache License 2.0 4 votes vote down vote up
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.removeAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #9
Source File: AccessibilityManagerCompatIcs.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public static boolean addAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.addAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #10
Source File: AccessibilityManagerCompatIcs.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.removeAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #11
Source File: AccessibilityManagerCompatIcs.java    From guideshow with MIT License 4 votes vote down vote up
public static boolean addAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.addAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}
 
Example #12
Source File: AccessibilityManagerCompatIcs.java    From guideshow with MIT License 4 votes vote down vote up
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager,
        Object listener) {
    return manager.removeAccessibilityStateChangeListener(
            (AccessibilityStateChangeListener)listener);
}