10import android.content.res.Configuration;
12import androidx.annotation.NonNull;
13import io.flutter.app.FlutterActivityDelegate.ViewFactory;
14import io.flutter.plugin.common.PluginRegistry;
15import io.flutter.view.FlutterNativeView;
16import io.flutter.view.FlutterView;
27 private static final String TAG =
"FlutterActivity";
34 private final FlutterView.Provider viewProvider = delegate;
43 return viewProvider.getFlutterView();
89 protected void onCreate(Bundle savedInstanceState) {
90 super.onCreate(savedInstanceState);
91 eventDelegate.
onCreate(savedInstanceState);
115 super.onBackPressed();
133 super.onPostResume();
139 int requestCode, @NonNull String[] permissions, @NonNull
int[] grantResults) {
146 super.onActivityResult(requestCode, resultCode,
data);
162 super.onWindowFocusChanged(hasFocus);
168 eventDelegate.onTrimMemory(
level);
173 eventDelegate.onLowMemory();
178 super.onConfigurationChanged(newConfig);
179 eventDelegate.onConfigurationChanged(newConfig);
void onActivityResult(int requestCode, int resultCode, Intent data)
FlutterView getFlutterView()
final boolean hasPlugin(String key)
final Registrar registrarFor(String pluginKey)
void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
void onTrimMemory(int level)
FlutterView createFlutterView(Context context)
FlutterNativeView createFlutterNativeView()
void onConfigurationChanged(Configuration newConfig)
boolean retainFlutterNativeView()
void onCreate(Bundle savedInstanceState)
final< T > T valuePublishedByPlugin(String pluginKey)
void onWindowFocusChanged(boolean hasFocus)
void onNewIntent(Intent intent)
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