Class FlutterActivityLaunchConfigs
java.lang.Object
io.flutter.embedding.android.FlutterActivityLaunchConfigs
Collection of Flutter launch configuration options.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe mode of the background of a FlutterActivity, either opaque or transparent. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandeepLinkEnabled(Bundle metaData) Whether to handle the deeplinking.static StringgetInitialRouteFromCommandLineOrManifest(Context context, Bundle metaData) Resolves the initial route for an activity based on command line arguments passed from the Flutter tool via the manifest or Activity meta-data, in that order of priority.static StringgetInitialRouteFromManifest(Context context) Extracts the initial route from the application's manifest shell arguments, if present.
-
Method Details
-
deepLinkEnabled
Whether to handle the deeplinking.The default implementation looks
<meta-data>calledHANDLE_DEEPLINKING_META_DATA_KEYwithin the Android manifest definition for thisFlutterActivity.Defaults to
true. -
getInitialRouteFromManifest
Extracts the initial route from the application's manifest shell arguments, if present.- Parameters:
context- The application context.- Returns:
- The initial route if defined in the manifest shell arguments, otherwise null.
-
getInitialRouteFromCommandLineOrManifest
@Nullable public static String getInitialRouteFromCommandLineOrManifest(@NonNull Context context, @Nullable Bundle metaData) Resolves the initial route for an activity based on command line arguments passed from the Flutter tool via the manifest or Activity meta-data, in that order of priority.- Parameters:
context- The application context.metaData- The Activity's metadata bundle, or null.- Returns:
- The initial route if defined, otherwise null.
-