34 lines
1.3 KiB
Java
34 lines
1.3 KiB
Java
package io.flutter.plugin.platform;
|
|
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.view.accessibility.AccessibilityEvent;
|
|
import io.flutter.view.AccessibilityBridge;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public class AccessibilityEventsDelegate {
|
|
private AccessibilityBridge accessibilityBridge;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void setAccessibilityBridge(AccessibilityBridge accessibilityBridge) {
|
|
this.accessibilityBridge = accessibilityBridge;
|
|
}
|
|
|
|
public boolean requestSendAccessibilityEvent(View view, View view2, AccessibilityEvent accessibilityEvent) {
|
|
AccessibilityBridge accessibilityBridge = this.accessibilityBridge;
|
|
if (accessibilityBridge == null) {
|
|
return false;
|
|
}
|
|
return accessibilityBridge.externalViewRequestSendAccessibilityEvent(view, view2, accessibilityEvent);
|
|
}
|
|
|
|
public boolean onAccessibilityHoverEvent(MotionEvent motionEvent, boolean z) {
|
|
AccessibilityBridge accessibilityBridge = this.accessibilityBridge;
|
|
if (accessibilityBridge == null) {
|
|
return false;
|
|
}
|
|
return accessibilityBridge.onAccessibilityHoverEvent(motionEvent, z);
|
|
}
|
|
}
|