Update HeadlessInAppWebView.swift
This commit is contained in:
parent
42743f23eb
commit
6635a7e8df
|
@ -21,10 +21,6 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
|
||||||
self.channel?.setMethodCallHandler(self.handle)
|
self.channel?.setMethodCallHandler(self.handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
|
||||||
dispose()
|
|
||||||
}
|
|
||||||
|
|
||||||
public override func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
public override func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||||
let arguments = call.arguments as? NSDictionary
|
let arguments = call.arguments as? NSDictionary
|
||||||
|
|
||||||
|
@ -96,4 +92,9 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
|
||||||
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
|
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
|
||||||
flutterWebView = nil
|
flutterWebView = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
print("HeadlessInAppWebView - dealloc")
|
||||||
|
dispose()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue