Ver Fonte

added un/register methods in base.dart

Peter Thaler há 7 anos atrás
pai
commit
827e259ba8
1 ficheiros alterados com 8 adições e 0 exclusões
  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();