what-the-bank/sources/io/flutter/plugin/platform/AccessibilityEventsDelegate...

34 lines
1.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}