Package io.flutter.embedding.engine
Class FlutterShellArgs
java.lang.Object
io.flutter.embedding.engine.FlutterShellArgs
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionFlutterShellArgs(String[] args) Creates a set of Flutter shell arguments from a givenString[]array.FlutterShellArgs(List<String> args) Creates a set of Flutter shell arguments from a givenList<String>.FlutterShellArgs(Set<String> args) Creates a set of Flutter shell arguments from a givenSet<String>. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the givenargto this set of arguments.static FlutterShellArgsfromIntent(Intent intent) voidRemoves the givenargfrom this set of arguments.String[]toArray()Returns a newString[]array which contains each of the arguments within thisFlutterShellArgs.
-
Field Details
-
ARG_KEY_TRACE_STARTUP
- See Also:
-
ARG_TRACE_STARTUP
- See Also:
-
ARG_KEY_START_PAUSED
- See Also:
-
ARG_START_PAUSED
- See Also:
-
ARG_KEY_DISABLE_SERVICE_AUTH_CODES
- See Also:
-
ARG_DISABLE_SERVICE_AUTH_CODES
- See Also:
-
ARG_KEY_ENDLESS_TRACE_BUFFER
- See Also:
-
ARG_ENDLESS_TRACE_BUFFER
- See Also:
-
ARG_KEY_USE_TEST_FONTS
- See Also:
-
ARG_USE_TEST_FONTS
- See Also:
-
ARG_KEY_ENABLE_DART_PROFILING
- See Also:
-
ARG_ENABLE_DART_PROFILING
- See Also:
-
ARG_KEY_ENABLE_SOFTWARE_RENDERING
- See Also:
-
ARG_ENABLE_SOFTWARE_RENDERING
- See Also:
-
ARG_KEY_SKIA_DETERMINISTIC_RENDERING
- See Also:
-
ARG_SKIA_DETERMINISTIC_RENDERING
- See Also:
-
ARG_KEY_TRACE_SKIA
- See Also:
-
ARG_TRACE_SKIA
- See Also:
-
ARG_KEY_TRACE_SKIA_ALLOWLIST
- See Also:
-
ARG_TRACE_SKIA_ALLOWLIST
- See Also:
-
ARG_KEY_TRACE_SYSTRACE
- See Also:
-
ARG_TRACE_SYSTRACE
- See Also:
-
ARG_KEY_TRACE_TO_FILE
- See Also:
-
ARG_TRACE_TO_FILE
- See Also:
-
ARG_KEY_PROFILE_MICROTASKS
- See Also:
-
ARG_PROFILE_MICROTASKS
- See Also:
-
ARG_KEY_TOGGLE_IMPELLER
- See Also:
-
ARG_ENABLE_IMPELLER
- See Also:
-
ARG_DISABLE_IMPELLER
- See Also:
-
ARG_KEY_ENABLE_VULKAN_VALIDATION
- See Also:
-
ARG_ENABLE_VULKAN_VALIDATION
- See Also:
-
ARG_KEY_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
- See Also:
-
ARG_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
- See Also:
-
ARG_KEY_CACHE_SKSL
- See Also:
-
ARG_CACHE_SKSL
- See Also:
-
ARG_KEY_PURGE_PERSISTENT_CACHE
- See Also:
-
ARG_PURGE_PERSISTENT_CACHE
- See Also:
-
ARG_KEY_VERBOSE_LOGGING
- See Also:
-
ARG_VERBOSE_LOGGING
- See Also:
-
ARG_KEY_VM_SERVICE_PORT
- See Also:
-
ARG_VM_SERVICE_PORT
- See Also:
-
ARG_KEY_DART_FLAGS
- See Also:
-
ARG_DART_FLAGS
- See Also:
-
-
Constructor Details
-
FlutterShellArgs
Creates a set of Flutter shell arguments from a givenString[]array. The given arguments are automatically de-duplicated. -
FlutterShellArgs
Creates a set of Flutter shell arguments from a givenList<String>. The given arguments are automatically de-duplicated. -
FlutterShellArgs
Creates a set of Flutter shell arguments from a givenSet<String>.
-
-
Method Details
-
fromIntent
-
add
Adds the givenargto this set of arguments.- Parameters:
arg- argument to add
-
remove
Removes the givenargfrom this set of arguments.- Parameters:
arg- argument to remove
-
toArray
Returns a newString[]array which contains each of the arguments within thisFlutterShellArgs.- Returns:
- array of arguments
-