mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 10:57:17 +01:00
68 lines
4 KiB
Java
68 lines
4 KiB
Java
package com.facebook.react.views.virtualview;
|
|
|
|
import android.graphics.Rect;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import com.facebook.react.bridge.Arguments;
|
|
import com.facebook.react.bridge.ReadableMap;
|
|
import com.facebook.react.bridge.WritableMap;
|
|
import com.facebook.react.uimanager.events.Event;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B7\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\n\u001a\u00020\u000b¢\u0006\u0004\b\f\u0010\rJ\b\u0010\u0011\u001a\u00020\u0012H\u0016J\b\u0010\u0013\u001a\u00020\u0014H\u0017J\b\u0010\u0015\u001a\u00020\u000bH\u0014R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u000fX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u000fX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0016"}, d2 = {"Lcom/facebook/react/views/virtualview/VirtualViewModeChangeEvent;", "Lcom/facebook/react/uimanager/events/Event;", "surfaceId", "", "viewTag", "mode", "Lcom/facebook/react/views/virtualview/VirtualViewMode;", "targetRect", "Landroid/graphics/Rect;", "thresholdRect", "synchronous", "", "<init>", "(IILcom/facebook/react/views/virtualview/VirtualViewMode;Landroid/graphics/Rect;Landroid/graphics/Rect;Z)V", "targetRectAsMap", "Lcom/facebook/react/bridge/ReadableMap;", "thresholdRectAsMap", "getEventName", "", "getEventData", "Lcom/facebook/react/bridge/WritableMap;", "experimental_isSynchronous", "ReactAndroid_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
|
/* loaded from: classes7.dex */
|
|
public final class VirtualViewModeChangeEvent extends Event<VirtualViewModeChangeEvent> {
|
|
|
|
@NotNull
|
|
private final VirtualViewMode mode;
|
|
private final boolean synchronous;
|
|
|
|
@NotNull
|
|
private final ReadableMap targetRectAsMap;
|
|
|
|
@NotNull
|
|
private final ReadableMap thresholdRectAsMap;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public VirtualViewModeChangeEvent(int i, int i2, @NotNull VirtualViewMode virtualViewMode, @NotNull Rect rect, @NotNull Rect rect2, boolean z) {
|
|
super(i, i2);
|
|
ReadableMap readableMap;
|
|
ReadableMap readableMap2;
|
|
virtualViewMode.getClass();
|
|
rect.getClass();
|
|
rect2.getClass();
|
|
this.mode = virtualViewMode;
|
|
this.synchronous = z;
|
|
readableMap = VirtualViewModeChangeEventKt.toReadableMap(rect);
|
|
this.targetRectAsMap = readableMap;
|
|
readableMap2 = VirtualViewModeChangeEventKt.toReadableMap(rect2);
|
|
this.thresholdRectAsMap = readableMap2;
|
|
}
|
|
|
|
@Override // com.facebook.react.uimanager.events.Event
|
|
/* renamed from: experimental_isSynchronous, reason: from getter */
|
|
public boolean getSynchronous() {
|
|
return this.synchronous;
|
|
}
|
|
|
|
@Override // com.facebook.react.uimanager.events.Event
|
|
@VisibleForTesting
|
|
@NotNull
|
|
/* renamed from: getEventData */
|
|
public WritableMap getData() {
|
|
WritableMap createMap = Arguments.createMap();
|
|
createMap.getClass();
|
|
createMap.putInt("mode", this.mode.getValue());
|
|
createMap.putMap("targetRect", this.targetRectAsMap);
|
|
createMap.putMap("thresholdRect", this.thresholdRectAsMap);
|
|
return createMap;
|
|
}
|
|
|
|
@Override // com.facebook.react.uimanager.events.Event
|
|
@NotNull
|
|
/* renamed from: getEventName */
|
|
public String getName() {
|
|
return "modeChange";
|
|
}
|
|
}
|