Procházet zdrojové kódy

added un/register methods in base.dart

Peter Thaler před 7 roky
rodič
revize
827e259ba8
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      lib/src/base.dart

+ 8 - 0
lib/src/base.dart

@@ -132,6 +132,14 @@ class FlutterWebviewPlugin {
   /// This is only available on Android for now.
   Future goForward() => _channel.invokeMethod("forward");
 
+  /// adds the plugin as ActivityResultListener
+  /// Only needed and used on Android
+  Future registerAcitivityResultListener() => _channel.invokeMethod("registerAcitivityResultListener");
+
+  /// removes the plugin as ActivityResultListener
+  /// Only needed and used on Android
+  Future removeAcitivityResultListener() => _channel.invokeMethod("removeAcitivityResultListener");
+
   /// Close all Streams
   void dispose() {
     _onDestroy.close();