NetMirror.apk
Download file
package com.facebook.fbreact.specs;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import g1.C0542a;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
/* JADX INFO: loaded from: classes.dex */
public abstract class NativeToastAndroidSpec extends ReactContextBaseJavaModule implements TurboModule {
public static final String NAME = "ToastAndroid";
public NativeToastAndroidSpec(ReactApplicationContext reactApplicationContext) {
super(reactApplicationContext);
}
@Override // com.facebook.react.bridge.BaseJavaModule
public final Map<String, Object> getConstants() {
Map<String, Object> typedExportedConstants = getTypedExportedConstants();
if (C0542a.f9423b || C0542a.f9424c) {
HashSet hashSet = new HashSet(Arrays.asList("BOTTOM", "CENTER", "LONG", "SHORT", "TOP"));
HashSet hashSet2 = new HashSet();
HashSet hashSet3 = new HashSet(typedExportedConstants.keySet());
hashSet3.removeAll(hashSet);
hashSet3.removeAll(hashSet2);
if (!hashSet3.isEmpty()) {
throw new IllegalStateException(String.format("Native Module Flow doesn't declare constants: %s", hashSet3));
}
hashSet.removeAll(typedExportedConstants.keySet());
if (!hashSet.isEmpty()) {
throw new IllegalStateException(String.format("Native Module doesn't fill in constants: %s", hashSet));
}
}
return typedExportedConstants;
}
@Override // com.facebook.react.bridge.NativeModule
public String getName() {
return "ToastAndroid";
}
protected abstract Map<String, Object> getTypedExportedConstants();
@ReactMethod
public abstract void show(String str, double d4);
@ReactMethod
public abstract void showWithGravity(String str, double d4, double d5);
@ReactMethod
public abstract void showWithGravityAndOffset(String str, double d4, double d5, double d6, double d7);
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file