9import android.content.res.Configuration;
11import androidx.fragment.app.FragmentActivity;
12import io.flutter.app.FlutterActivityDelegate.ViewFactory;
13import io.flutter.plugin.common.PluginRegistry;
14import io.flutter.view.FlutterNativeView;
15import io.flutter.view.FlutterView;
42 private final FlutterView.Provider viewProvider = delegate;
51 return viewProvider.getFlutterView();
91 protected void onCreate(Bundle savedInstanceState) {
92 super.onCreate(savedInstanceState);
93 eventDelegate.
onCreate(savedInstanceState);
105 super.onBackPressed();
129 super.onPostResume();
135 int requestCode, String[] permissions,
int[] grantResults) {
136 super.onRequestPermissionsResult(requestCode, permissions, grantResults);
143 super.onActivityResult(requestCode, resultCode,
data);
149 super.onNewIntent(intent);
154 @SuppressWarnings(
"MissingSuperCall")
161 super.onWindowFocusChanged(hasFocus);
167 super.onTrimMemory(
level);
168 eventDelegate.onTrimMemory(
level);
173 eventDelegate.onLowMemory();
178 super.onConfigurationChanged(newConfig);
179 eventDelegate.onConfigurationChanged(newConfig);
void onTrimMemory(int level)
final< T > T valuePublishedByPlugin(String pluginKey)
void onActivityResult(int requestCode, int resultCode, Intent data)
final boolean hasPlugin(String key)
void onNewIntent(Intent intent)
void onWindowFocusChanged(boolean hasFocus)
void onCreate(Bundle savedInstanceState)
FlutterView createFlutterView(Context context)
FlutterView getFlutterView()
void onConfigurationChanged(Configuration newConfig)
FlutterNativeView createFlutterNativeView()
boolean retainFlutterNativeView()
void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)
final Registrar registrarFor(String pluginKey)
void onWindowFocusChanged(boolean hasFocus)
void onCreate(Bundle savedInstanceState)
void onNewIntent(Intent intent)
boolean onActivityResult(int requestCode, int resultCode, @Nullable Intent data)
boolean onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
boolean hasPlugin(@NonNull String pluginKey)
< T > T valuePublishedByPlugin(@NonNull String pluginKey)
Registrar registrarFor(@NonNull String pluginKey)
std::shared_ptr< const fml::Mapping > data