willSubmit
Swift declaration@MainActor func willSubmit(formInfo: WebPage.FormInfo) asyncBy default, this method does nothing.
protocol · iOS 26.0+ · SDK 27.1
protocol NavigationDecidingAllows providing custom behavior to handle navigation changes and to coordinate these changes for the web page's main page. For example, you might use these methods to restrict navigation from specific links within your content.
@MainActor func willSubmit(formInfo: WebPage.FormInfo) asyncBy default, this method does nothing.
@MainActor func decidePolicy(for action: WebPage.NavigationAction, preferences: inout WebPage.NavigationPreferences) async -> WKNavigationActionPolicyBy default, this method immediately returns with a policy of `.allow`.
Omit the output parameters from the call. The result contains $ret and $out, with preferences inside $out.
@MainActor func decidePolicy(for response: WebPage.NavigationResponse) async -> WKNavigationResponsePolicyBy default, this method immediately returns with a policy of `.allow`.
@MainActor func decideAuthenticationChallengeDisposition(for challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)By default, this method immediately returns with a disposition of `performDefaultHandling` and a `nil` credential.
No declarations were skipped in this snapshot.