|
| FlutterPluginRegistry (FlutterNativeView nativeView, Context context) |
|
| FlutterPluginRegistry (FlutterEngine engine, Context context) |
|
boolean | hasPlugin (String key) |
|
Registrar | registrarFor (String pluginKey) |
|
void | attach (FlutterView flutterView, Activity activity) |
|
void | detach () |
|
void | onPreEngineRestart () |
|
PlatformViewsController | getPlatformViewsController () |
|
boolean | onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) |
|
boolean | onActivityResult (int requestCode, int resultCode, Intent data) |
|
boolean | onNewIntent (Intent intent) |
|
void | onUserLeaveHint () |
|
void | onWindowFocusChanged (boolean hasFocus) |
|
boolean | onViewDestroy (FlutterNativeView view) |
|
void | destroy () |
|
Registrar | registrarFor (@NonNull String pluginKey) |
|
boolean | hasPlugin (@NonNull String pluginKey) |
|
< T > T | valuePublishedByPlugin (@NonNull String pluginKey) |
|
boolean | onRequestPermissionsResult (int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) |
|
boolean | onActivityResult (int requestCode, int resultCode, @Nullable Intent data) |
|
boolean | onNewIntent (@NonNull Intent intent) |
|
void | onWindowFocusChanged (boolean hasFocus) |
|
void | onUserLeaveHint () |
|
boolean | onViewDestroy (@NonNull FlutterNativeView view) |
|
◆ FlutterPluginRegistry() [1/2]
Definition at line 51 of file FlutterPluginRegistry.java.
51 {
52 mNativeView = nativeView;
53 mAppContext = context;
54 mPlatformViewsController = new PlatformViewsController();
55 }
◆ FlutterPluginRegistry() [2/2]
io.flutter.app.FlutterPluginRegistry.FlutterPluginRegistry |
( |
FlutterEngine |
engine, |
|
|
Context |
context |
|
) |
| |
|
inline |
Definition at line 57 of file FlutterPluginRegistry.java.
57 {
58
59 mAppContext = context;
60 mPlatformViewsController = new PlatformViewsController();
61 }
◆ attach()
void io.flutter.app.FlutterPluginRegistry.attach |
( |
FlutterView |
flutterView, |
|
|
Activity |
activity |
|
) |
| |
|
inline |
Definition at line 83 of file FlutterPluginRegistry.java.
83 {
84 mFlutterView = flutterView;
85 mActivity = activity;
86 mPlatformViewsController.
attach(activity, flutterView, flutterView.getDartExecutor());
87 }
◆ destroy()
void io.flutter.app.FlutterPluginRegistry.destroy |
( |
| ) |
|
|
inline |
◆ detach()
void io.flutter.app.FlutterPluginRegistry.detach |
( |
| ) |
|
|
inline |
◆ getPlatformViewsController()
◆ hasPlugin()
boolean io.flutter.app.FlutterPluginRegistry.hasPlugin |
( |
String |
key | ) |
|
|
inline |
◆ onActivityResult()
boolean io.flutter.app.FlutterPluginRegistry.onActivityResult |
( |
int |
requestCode, |
|
|
int |
resultCode, |
|
|
Intent |
data |
|
) |
| |
|
inline |
Definition at line 212 of file FlutterPluginRegistry.java.
212 {
213 for (ActivityResultListener listener : mActivityResultListeners) {
214 if (listener.onActivityResult(requestCode, resultCode,
data)) {
215 return true;
216 }
217 }
218 return false;
219 }
std::shared_ptr< const fml::Mapping > data
◆ onNewIntent()
boolean io.flutter.app.FlutterPluginRegistry.onNewIntent |
( |
Intent |
intent | ) |
|
|
inline |
Definition at line 222 of file FlutterPluginRegistry.java.
222 {
223 for (NewIntentListener listener : mNewIntentListeners) {
224 if (listener.onNewIntent(intent)) {
225 return true;
226 }
227 }
228 return false;
229 }
◆ onPreEngineRestart()
void io.flutter.app.FlutterPluginRegistry.onPreEngineRestart |
( |
| ) |
|
|
inline |
◆ onRequestPermissionsResult()
boolean io.flutter.app.FlutterPluginRegistry.onRequestPermissionsResult |
( |
int |
requestCode, |
|
|
String[] |
permissions, |
|
|
int[] |
grantResults |
|
) |
| |
|
inline |
Definition at line 201 of file FlutterPluginRegistry.java.
202 {
203 for (RequestPermissionsResultListener listener : mRequestPermissionsResultListeners) {
204 if (listener.onRequestPermissionsResult(requestCode, permissions, grantResults)) {
205 return true;
206 }
207 }
208 return false;
209 }
◆ onUserLeaveHint()
void io.flutter.app.FlutterPluginRegistry.onUserLeaveHint |
( |
| ) |
|
|
inline |
◆ onViewDestroy()
Definition at line 246 of file FlutterPluginRegistry.java.
246 {
247 boolean handled = false;
248 for (ViewDestroyListener listener : mViewDestroyListeners) {
249 if (listener.onViewDestroy(view)) {
250 handled = true;
251 }
252 }
253 return handled;
254 }
◆ onWindowFocusChanged()
void io.flutter.app.FlutterPluginRegistry.onWindowFocusChanged |
( |
boolean |
hasFocus | ) |
|
|
inline |
◆ registrarFor()
Registrar io.flutter.app.FlutterPluginRegistry.registrarFor |
( |
String |
pluginKey | ) |
|
|
inline |
Definition at line 75 of file FlutterPluginRegistry.java.
75 {
76 if (mPluginMap.containsKey(pluginKey)) {
77 throw new IllegalStateException("Plugin key " + pluginKey + " is already in use");
78 }
79 mPluginMap.put(pluginKey, null);
80 return new FlutterRegistrar(pluginKey);
81 }
◆ valuePublishedByPlugin()
public< T > T io.flutter.app.FlutterPluginRegistry.valuePublishedByPlugin |
( |
String |
pluginKey | ) |
|
|
inlinepackage |
The documentation for this class was generated from the following file: