Skip to content

Commit

Permalink
make class public
Browse files Browse the repository at this point in the history
  • Loading branch information
bparrishMines committed Dec 19, 2024
1 parent 9e3b41e commit eff8031
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import WebKit

/// Implementation of `WKNavigationDelegate` that calls to Dart in callback methods.
class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
public class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
let api: PigeonApiProtocolWKNavigationDelegate
unowned let registrar: ProxyAPIRegistrar

Expand All @@ -14,7 +14,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
self.registrar = registrar
}

func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
registrar.dispatchOnMainThread { onFailure in
self.api.didFinishNavigation(
pigeonInstance: self, webView: webView, url: webView.url?.absoluteString
Expand All @@ -26,7 +26,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
public func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
registrar.dispatchOnMainThread { onFailure in
self.api.didStartProvisionalNavigation(
pigeonInstance: self, webView: webView, url: webView.url?.absoluteString
Expand Down Expand Up @@ -71,7 +71,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

func webView(
public func webView(
_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse,
decisionHandler: @escaping @MainActor (WKNavigationResponsePolicy) -> Void
) {
Expand Down Expand Up @@ -105,7 +105,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
registrar.dispatchOnMainThread { onFailure in
self.api.didFailNavigation(pigeonInstance: self, webView: webView, error: error as NSError) {
result in
Expand All @@ -116,7 +116,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

func webView(
public func webView(
_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!,
withError error: Error
) {
Expand All @@ -131,7 +131,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

func webViewWebContentProcessDidTerminate(_ webView: WKWebView) {
public func webViewWebContentProcessDidTerminate(_ webView: WKWebView) {
registrar.dispatchOnMainThread { onFailure in
self.api.webViewWebContentProcessDidTerminate(pigeonInstance: self, webView: webView) {
result in
Expand All @@ -142,7 +142,7 @@ class NavigationDelegateImpl: NSObject, WKNavigationDelegate {
}
}

func webView(
public func webView(
_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge,
completionHandler: @escaping @MainActor (URLSession.AuthChallengeDisposition, URLCredential?) ->
Void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 60;
objectVersion = 54;
objects = {

/* Begin PBXAggregateTarget section */
Expand Down

0 comments on commit eff8031

Please sign in to comment.