Package io.flutter.embedding.engine
Class FlutterShellArgs
- java.lang.Object
-
- io.flutter.embedding.engine.FlutterShellArgs
-
public class FlutterShellArgs extends Object
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
-
Constructor Summary
Constructors Constructor Description FlutterShellArgs(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String arg)
Adds the givenarg
to this set of arguments.static FlutterShellArgs
fromIntent(Intent intent)
void
remove(String arg)
Removes the givenarg
from this set of arguments.String[]
toArray()
Returns a newString[]
array which contains each of the arguments within thisFlutterShellArgs
.
-
-
-
Field Detail
-
ARG_KEY_TRACE_STARTUP
public static final String ARG_KEY_TRACE_STARTUP
- See Also:
- Constant Field Values
-
ARG_TRACE_STARTUP
public static final String ARG_TRACE_STARTUP
- See Also:
- Constant Field Values
-
ARG_KEY_START_PAUSED
public static final String ARG_KEY_START_PAUSED
- See Also:
- Constant Field Values
-
ARG_START_PAUSED
public static final String ARG_START_PAUSED
- See Also:
- Constant Field Values
-
ARG_KEY_DISABLE_SERVICE_AUTH_CODES
public static final String ARG_KEY_DISABLE_SERVICE_AUTH_CODES
- See Also:
- Constant Field Values
-
ARG_DISABLE_SERVICE_AUTH_CODES
public static final String ARG_DISABLE_SERVICE_AUTH_CODES
- See Also:
- Constant Field Values
-
ARG_KEY_ENDLESS_TRACE_BUFFER
public static final String ARG_KEY_ENDLESS_TRACE_BUFFER
- See Also:
- Constant Field Values
-
ARG_ENDLESS_TRACE_BUFFER
public static final String ARG_ENDLESS_TRACE_BUFFER
- See Also:
- Constant Field Values
-
ARG_KEY_USE_TEST_FONTS
public static final String ARG_KEY_USE_TEST_FONTS
- See Also:
- Constant Field Values
-
ARG_USE_TEST_FONTS
public static final String ARG_USE_TEST_FONTS
- See Also:
- Constant Field Values
-
ARG_KEY_ENABLE_DART_PROFILING
public static final String ARG_KEY_ENABLE_DART_PROFILING
- See Also:
- Constant Field Values
-
ARG_ENABLE_DART_PROFILING
public static final String ARG_ENABLE_DART_PROFILING
- See Also:
- Constant Field Values
-
ARG_KEY_ENABLE_SOFTWARE_RENDERING
public static final String ARG_KEY_ENABLE_SOFTWARE_RENDERING
- See Also:
- Constant Field Values
-
ARG_ENABLE_SOFTWARE_RENDERING
public static final String ARG_ENABLE_SOFTWARE_RENDERING
- See Also:
- Constant Field Values
-
ARG_KEY_SKIA_DETERMINISTIC_RENDERING
public static final String ARG_KEY_SKIA_DETERMINISTIC_RENDERING
- See Also:
- Constant Field Values
-
ARG_SKIA_DETERMINISTIC_RENDERING
public static final String ARG_SKIA_DETERMINISTIC_RENDERING
- See Also:
- Constant Field Values
-
ARG_KEY_TRACE_SKIA
public static final String ARG_KEY_TRACE_SKIA
- See Also:
- Constant Field Values
-
ARG_TRACE_SKIA
public static final String ARG_TRACE_SKIA
- See Also:
- Constant Field Values
-
ARG_KEY_TRACE_SKIA_ALLOWLIST
public static final String ARG_KEY_TRACE_SKIA_ALLOWLIST
- See Also:
- Constant Field Values
-
ARG_TRACE_SKIA_ALLOWLIST
public static final String ARG_TRACE_SKIA_ALLOWLIST
- See Also:
- Constant Field Values
-
ARG_KEY_TRACE_SYSTRACE
public static final String ARG_KEY_TRACE_SYSTRACE
- See Also:
- Constant Field Values
-
ARG_TRACE_SYSTRACE
public static final String ARG_TRACE_SYSTRACE
- See Also:
- Constant Field Values
-
ARG_KEY_ENABLE_IMPELLER
public static final String ARG_KEY_ENABLE_IMPELLER
- See Also:
- Constant Field Values
-
ARG_ENABLE_IMPELLER
public static final String ARG_ENABLE_IMPELLER
- See Also:
- Constant Field Values
-
ARG_KEY_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
public static final String ARG_KEY_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
- See Also:
- Constant Field Values
-
ARG_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
public static final String ARG_DUMP_SHADER_SKP_ON_SHADER_COMPILATION
- See Also:
- Constant Field Values
-
ARG_KEY_CACHE_SKSL
public static final String ARG_KEY_CACHE_SKSL
- See Also:
- Constant Field Values
-
ARG_CACHE_SKSL
public static final String ARG_CACHE_SKSL
- See Also:
- Constant Field Values
-
ARG_KEY_PURGE_PERSISTENT_CACHE
public static final String ARG_KEY_PURGE_PERSISTENT_CACHE
- See Also:
- Constant Field Values
-
ARG_PURGE_PERSISTENT_CACHE
public static final String ARG_PURGE_PERSISTENT_CACHE
- See Also:
- Constant Field Values
-
ARG_KEY_VERBOSE_LOGGING
public static final String ARG_KEY_VERBOSE_LOGGING
- See Also:
- Constant Field Values
-
ARG_VERBOSE_LOGGING
public static final String ARG_VERBOSE_LOGGING
- See Also:
- Constant Field Values
-
ARG_KEY_OBSERVATORY_PORT
public static final String ARG_KEY_OBSERVATORY_PORT
- See Also:
- Constant Field Values
-
ARG_OBSERVATORY_PORT
public static final String ARG_OBSERVATORY_PORT
- See Also:
- Constant Field Values
-
ARG_KEY_DART_FLAGS
public static final String ARG_KEY_DART_FLAGS
- See Also:
- Constant Field Values
-
ARG_DART_FLAGS
public static final String ARG_DART_FLAGS
- See Also:
- Constant Field Values
-
ARG_KEY_MSAA_SAMPLES
public static final String ARG_KEY_MSAA_SAMPLES
- See Also:
- Constant Field Values
-
ARG_MSAA_SAMPLES
public static final String ARG_MSAA_SAMPLES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FlutterShellArgs
public FlutterShellArgs(@NonNull String[] args)
Creates a set of Flutter shell arguments from a givenString[]
array. The given arguments are automatically de-duplicated.
-
FlutterShellArgs
public FlutterShellArgs(@NonNull List<String> args)
Creates a set of Flutter shell arguments from a givenList<String>
. The given arguments are automatically de-duplicated.
-
-
Method Detail
-
fromIntent
@NonNull public static FlutterShellArgs fromIntent(@NonNull Intent intent)
-
add
public void add(@NonNull String arg)
Adds the givenarg
to this set of arguments.- Parameters:
arg
- argument to add
-
remove
public void remove(@NonNull String arg)
Removes the givenarg
from this set of arguments.- Parameters:
arg
- argument to remove
-
toArray
@NonNull public String[] toArray()
Returns a newString[]
array which contains each of the arguments within thisFlutterShellArgs
.- Returns:
- array of arguments
-
-