Flutter Engine
The Flutter Engine
Static Public Member Functions | Static Public Attributes | List of all members
io.flutter.embedding.engine.loader.ApplicationInfoLoader Class Reference

Static Public Member Functions

static FlutterApplicationInfo load (@NonNull Context applicationContext)
 

Static Public Attributes

static final String PUBLIC_AOT_SHARED_LIBRARY_NAME
 
static final String PUBLIC_VM_SNAPSHOT_DATA_KEY
 
static final String PUBLIC_ISOLATE_SNAPSHOT_DATA_KEY
 
static final String PUBLIC_FLUTTER_ASSETS_DIR_KEY
 
static final String NETWORK_POLICY_METADATA_KEY = "io.flutter.network-policy"
 
static final String PUBLIC_AUTOMATICALLY_REGISTER_PLUGINS_METADATA_KEY
 

Detailed Description

Loads application information given a Context.

Definition at line 18 of file ApplicationInfoLoader.java.

Member Function Documentation

◆ load()

static FlutterApplicationInfo io.flutter.embedding.engine.loader.ApplicationInfoLoader.load ( @NonNull Context  applicationContext)
inlinestatic

Initialize our Flutter config values by obtaining them from the manifest XML file, falling back to default values.

Definition at line 147 of file ApplicationInfoLoader.java.

147 {
148 ApplicationInfo appInfo = getApplicationInfo(applicationContext);
149 return new FlutterApplicationInfo(
150 getString(appInfo.metaData, PUBLIC_AOT_SHARED_LIBRARY_NAME),
151 getString(appInfo.metaData, PUBLIC_VM_SNAPSHOT_DATA_KEY),
152 getString(appInfo.metaData, PUBLIC_ISOLATE_SNAPSHOT_DATA_KEY),
153 getString(appInfo.metaData, PUBLIC_FLUTTER_ASSETS_DIR_KEY),
154 getNetworkPolicy(appInfo, applicationContext),
155 appInfo.nativeLibraryDir,
156 getBoolean(appInfo.metaData, PUBLIC_AUTOMATICALLY_REGISTER_PLUGINS_METADATA_KEY, true));
157 }

Member Data Documentation

◆ NETWORK_POLICY_METADATA_KEY

final String io.flutter.embedding.engine.loader.ApplicationInfoLoader.NETWORK_POLICY_METADATA_KEY = "io.flutter.network-policy"
static

Definition at line 28 of file ApplicationInfoLoader.java.

◆ PUBLIC_AOT_SHARED_LIBRARY_NAME

final String io.flutter.embedding.engine.loader.ApplicationInfoLoader.PUBLIC_AOT_SHARED_LIBRARY_NAME
static
Initial value:
=
FlutterLoader.class.getName() + '.' + FlutterLoader.AOT_SHARED_LIBRARY_NAME

Definition at line 20 of file ApplicationInfoLoader.java.

◆ PUBLIC_AUTOMATICALLY_REGISTER_PLUGINS_METADATA_KEY

final String io.flutter.embedding.engine.loader.ApplicationInfoLoader.PUBLIC_AUTOMATICALLY_REGISTER_PLUGINS_METADATA_KEY
static
Initial value:
=
"io.flutter." + FlutterLoader.AUTOMATICALLY_REGISTER_PLUGINS_KEY

Definition at line 29 of file ApplicationInfoLoader.java.

◆ PUBLIC_FLUTTER_ASSETS_DIR_KEY

final String io.flutter.embedding.engine.loader.ApplicationInfoLoader.PUBLIC_FLUTTER_ASSETS_DIR_KEY
static
Initial value:
=
FlutterLoader.class.getName() + '.' + FlutterLoader.FLUTTER_ASSETS_DIR_KEY

Definition at line 26 of file ApplicationInfoLoader.java.

◆ PUBLIC_ISOLATE_SNAPSHOT_DATA_KEY

final String io.flutter.embedding.engine.loader.ApplicationInfoLoader.PUBLIC_ISOLATE_SNAPSHOT_DATA_KEY
static
Initial value:
=
FlutterLoader.class.getName() + '.' + FlutterLoader.ISOLATE_SNAPSHOT_DATA_KEY

Definition at line 24 of file ApplicationInfoLoader.java.

◆ PUBLIC_VM_SNAPSHOT_DATA_KEY

final String io.flutter.embedding.engine.loader.ApplicationInfoLoader.PUBLIC_VM_SNAPSHOT_DATA_KEY
static
Initial value:
=
FlutterLoader.class.getName() + '.' + FlutterLoader.VM_SNAPSHOT_DATA_KEY

Definition at line 22 of file ApplicationInfoLoader.java.


The documentation for this class was generated from the following file: