Class FlutterActivityLaunchConfigs

java.lang.Object
io.flutter.embedding.android.FlutterActivityLaunchConfigs

public class FlutterActivityLaunchConfigs extends Object
Collection of Flutter launch configuration options.
  • Method Details

    • deepLinkEnabled

      public static boolean deepLinkEnabled(Bundle metaData)
      Whether to handle the deeplinking.

      The default implementation looks <meta-data> called HANDLE_DEEPLINKING_META_DATA_KEY within the Android manifest definition for this FlutterActivity.

      Defaults to true.

    • getInitialRouteFromManifest

      @Nullable public static String getInitialRouteFromManifest(@NonNull Context context)
      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.