Class FlutterShellArgs

java.lang.Object
io.flutter.embedding.engine.FlutterShellArgs

@Deprecated public class FlutterShellArgs extends Object
Deprecated.
DEPRECATED. Please see FlutterEngineFlags for the list of arguments to use or update if you are adding a new flag.

Arguments that can be delivered to the Flutter shell when it is created.

The term "shell" refers to the native code that adapts Flutter to different platforms. Flutter's Android Java code initializes a native "shell" and passes these arguments to that native shell when it is initialized. See FlutterLoader.ensureInitializationComplete(Context, String[]) for more information.

  • Field Details

  • Constructor Details

    • FlutterShellArgs

      public FlutterShellArgs(@NonNull String[] args)
      Deprecated.
      Creates a set of Flutter shell arguments from a given String[] array. The given arguments are automatically de-duplicated.
    • FlutterShellArgs

      public FlutterShellArgs(@NonNull List<String> args)
      Deprecated.
      Creates a set of Flutter shell arguments from a given List<String>. The given arguments are automatically de-duplicated.
    • FlutterShellArgs

      public FlutterShellArgs(@NonNull Set<String> args)
      Deprecated.
      Creates a set of Flutter shell arguments from a given Set<String>.
  • Method Details

    • fromIntent

      @NonNull public static FlutterShellArgs fromIntent(@NonNull Intent intent)
      Deprecated.
    • add

      public void add(@NonNull String arg)
      Deprecated.
      Adds the given arg to this set of arguments.
      Parameters:
      arg - argument to add
    • remove

      public void remove(@NonNull String arg)
      Deprecated.
      Removes the given arg from this set of arguments.
      Parameters:
      arg - argument to remove
    • toArray

      @NonNull public String[] toArray()
      Deprecated.
      Returns a new String[] array which contains each of the arguments within this FlutterShellArgs.
      Returns:
      array of arguments