We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06648f commit 388a822Copy full SHA for 388a822
ios/Capacitor/Capacitor/JSExport.swift
@@ -67,6 +67,9 @@ internal class JSExport {
67
t.addListener = function(eventName, callback) {
68
return w.Capacitor.addListener('\(plugin.jsName)', eventName, callback);
69
}
70
+ t.removeAllListeners = function() {
71
+ return w.Capacitor.nativePromise('\(plugin.jsName)', 'removeAllListeners');
72
+ }
73
""")
74
75
for method in plugin.pluginMethods {
0 commit comments