Class FlutterEngineGroup.Options

  • Enclosing class:
    FlutterEngineGroup

    public static class FlutterEngineGroup.Options
    extends Object
    Options that control how a FlutterEngine should be created.
    • Constructor Detail

      • Options

        public Options​(@NonNull
                       Context context)
    • Method Detail

      • getContext

        public Context getContext()
      • getDartEntrypoint

        public DartExecutor.DartEntrypoint getDartEntrypoint()
        dartEntrypoint specifies the DartExecutor.DartEntrypoint the new engine should run. It doesn't need to be the same entrypoint as the current engine but must be built in the same AOT or snapshot.
      • getInitialRoute

        public String getInitialRoute()
        The name of the initial Flutter `Navigator` `Route` to load. If this is null, it will default to the "/" route.
      • getDartEntrypointArgs

        public List<String> getDartEntrypointArgs()
        Arguments passed as a list of string to Dart's entrypoint function.
      • setInitialRoute

        public FlutterEngineGroup.Options setInitialRoute​(String initialRoute)
        Setter for `initialRoute` property.
        Parameters:
        initialRoute - The name of the initial Flutter `Navigator` `Route` to load. If this is null, it will default to the "/" route.
      • setDartEntrypointArgs

        public FlutterEngineGroup.Options setDartEntrypointArgs​(List<String> dartEntrypointArgs)
        Setter for `dartEntrypointArgs` property.
        Parameters:
        dartEntrypointArgs - Arguments passed as a list of string to Dart's entrypoint function.