Home | History | Annotate | Download | only in accessibilityservice

Lines Matching defs:callback

92      * @param callback the callback to add, must be non-null
94 public void registerAccessibilityButtonCallback(@NonNull AccessibilityButtonCallback callback) {
95 registerAccessibilityButtonCallback(callback, new Handler(Looper.getMainLooper()));
100 * change callbacks related to the accessibility button. The callback will occur on the
104 * @param callback the callback to add, must be non-null
105 * @param handler the handler on which the callback should execute, must be non-null
107 public void registerAccessibilityButtonCallback(@NonNull AccessibilityButtonCallback callback,
109 Preconditions.checkNotNull(callback);
116 mCallbacks.put(callback, handler);
124 * @param callback the callback to remove, must be non-null
127 @NonNull AccessibilityButtonCallback callback) {
128 Preconditions.checkNotNull(callback);
134 final int keyIndex = mCallbacks.indexOfKey(callback);
160 final AccessibilityButtonCallback callback = entries.keyAt(i);
162 handler.post(() -> callback.onClicked(this));
185 final AccessibilityButtonCallback callback = entries.keyAt(i);
187 handler.post(() -> callback.onAvailabilityChanged(this, available));
192 * Callback for interaction with and changes to state of the accessibility button
200 * @param controller the controller used to register for this callback
210 * @param controller the controller used to register for this callback