Flutter Engine
The Flutter Engine
FlutterActivityLaunchConfigs.java
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package io.flutter.embedding.android;
6
7/** Collection of Flutter launch configuration options. */
8// This class is public so that Flutter app developers can reference
9// BackgroundMode
10@SuppressWarnings("WeakerAccess")
12 // Meta-data arguments, processed from manifest XML.
13 /* package */ static final String DART_ENTRYPOINT_META_DATA_KEY = "io.flutter.Entrypoint";
14 /* package */ static final String DART_ENTRYPOINT_URI_META_DATA_KEY = "io.flutter.EntrypointUri";
15 /* package */ static final String INITIAL_ROUTE_META_DATA_KEY = "io.flutter.InitialRoute";
16 /* package */ static final String NORMAL_THEME_META_DATA_KEY =
17 "io.flutter.embedding.android.NormalTheme";
18 /* package */ static final String HANDLE_DEEPLINKING_META_DATA_KEY =
19 "flutter_deeplinking_enabled";
20 // Intent extra arguments.
21 /* package */ static final String EXTRA_DART_ENTRYPOINT = "dart_entrypoint";
22 /* package */ static final String EXTRA_INITIAL_ROUTE = "route";
23 /* package */ static final String EXTRA_BACKGROUND_MODE = "background_mode";
24 /* package */ static final String EXTRA_CACHED_ENGINE_ID = "cached_engine_id";
25 /* package */ static final String EXTRA_DART_ENTRYPOINT_ARGS = "dart_entrypoint_args";
26 /* package */ static final String EXTRA_CACHED_ENGINE_GROUP_ID = "cached_engine_group_id";
27 /* package */ static final String EXTRA_DESTROY_ENGINE_WITH_ACTIVITY =
28 "destroy_engine_with_activity";
29 /* package */ static final String EXTRA_ENABLE_STATE_RESTORATION = "enable_state_restoration";
30
31 // Default configuration.
32 /* package */ static final String DEFAULT_DART_ENTRYPOINT = "main";
33 /* package */ static final String DEFAULT_INITIAL_ROUTE = "/";
34 /* package */ static final String DEFAULT_BACKGROUND_MODE = BackgroundMode.opaque.name();
35
36 /** The mode of the background of a Flutter {@code Activity}, either opaque or transparent. */
37 public enum BackgroundMode {
38 /** Indicates a FlutterActivity with an opaque background. This is the default. */
40 /** Indicates a FlutterActivity with a transparent background. */
41 transparent
42 }
43
45}