Explorar o código

added un/register methods in base.dart

Peter Thaler %!s(int64=7) %!d(string=hai) anos
pai
achega
827e259ba8
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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();