Browse Source

added un/register methods in base.dart

Peter Thaler 7 năm trước cách đây
mục cha
commit
827e259ba8
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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();