public class FlutterMain extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FlutterMain.Settings |
| Modifier and Type | Field and Description |
|---|---|
static String |
PUBLIC_AOT_AOT_SHARED_LIBRARY_PATH |
static String |
PUBLIC_AOT_ISOLATE_SNAPSHOT_DATA_KEY |
static String |
PUBLIC_AOT_ISOLATE_SNAPSHOT_INSTR_KEY |
static String |
PUBLIC_AOT_VM_SNAPSHOT_DATA_KEY |
static String |
PUBLIC_AOT_VM_SNAPSHOT_INSTR_KEY |
static String |
PUBLIC_FLUTTER_ASSETS_DIR_KEY |
static String |
PUBLIC_FLX_KEY |
| Constructor and Description |
|---|
FlutterMain() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureInitializationComplete(Context applicationContext,
String[] args)
Blocks until initialization of the native system has completed.
|
static String |
findAppBundlePath(Context applicationContext) |
static String |
getLookupKeyForAsset(String asset)
Returns the file name for the given asset.
|
static String |
getLookupKeyForAsset(String asset,
String packageName)
Returns the file name for the given asset which originates from the
specified packageName.
|
static ResourceUpdater |
getResourceUpdater()
Returns the main internal interface for the dynamic patching subsystem.
|
static boolean |
isRunningPrecompiledCode() |
static void |
onResume(Context context) |
static void |
startInitialization(Context applicationContext)
Starts initialization of the native system.
|
static void |
startInitialization(Context applicationContext,
FlutterMain.Settings settings)
Starts initialization of the native system.
|
public static final String PUBLIC_AOT_AOT_SHARED_LIBRARY_PATH
public static final String PUBLIC_AOT_VM_SNAPSHOT_DATA_KEY
public static final String PUBLIC_AOT_VM_SNAPSHOT_INSTR_KEY
public static final String PUBLIC_AOT_ISOLATE_SNAPSHOT_DATA_KEY
public static final String PUBLIC_AOT_ISOLATE_SNAPSHOT_INSTR_KEY
public static final String PUBLIC_FLX_KEY
public static final String PUBLIC_FLUTTER_ASSETS_DIR_KEY
public static void startInitialization(Context applicationContext)
applicationContext - The Android application context.public static void startInitialization(Context applicationContext, FlutterMain.Settings settings)
applicationContext - The Android application context.settings - Configuration settings.public static void ensureInitializationComplete(Context applicationContext, String[] args)
applicationContext - The Android application context.args - Flags sent to the Flutter runtime.public static void onResume(Context context)
public static boolean isRunningPrecompiledCode()
public static ResourceUpdater getResourceUpdater()
public static String getLookupKeyForAsset(String asset)
AssetManager API.asset - the name of the asset. The name can be hierarchicalAssetManagerpublic static String getLookupKeyForAsset(String asset, String packageName)
AssetManager API.asset - the name of the asset. The name can be hierarchicalpackageName - the name of the package from which the asset originatesAssetManager