From bfd8577b4baf207d73313ace5ce097cd42ae497a Mon Sep 17 00:00:00 2001 From: Josh Puetz Date: Fri, 4 Feb 2022 16:23:39 -0600 Subject: [PATCH] Update docs --- docs/ForemWebView-deep-dive.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/ForemWebView-deep-dive.md b/docs/ForemWebView-deep-dive.md index bfb701a..b5ba935 100644 --- a/docs/ForemWebView-deep-dive.md +++ b/docs/ForemWebView-deep-dive.md @@ -19,9 +19,6 @@ It's important to know this is a custom implementation of `WKWebView` and you ** - `load(_ urlString: String)` - Helper method for simplicity: `webView.load("https://dev.to")` -- `isOAuthUrl(_ url: URL) -> Bool` - - Responds to whether the url provided is one of the supported 3rd party redirect URLs in a OAuth protocol - - Useful if implementing `WKNavigationDelegate` on your own (not recommended) - `userData` - Instance of `ForemUserData` when authenticated or `nil` otherwise - `foremInstance` @@ -31,6 +28,12 @@ It's important to know this is a custom implementation of `WKWebView` and you ** - Instead of polling with this function we recommend you register to observe the `userData` variable as you'll react to changes when they become available - `fetchUserData(completion: @escaping (ForemUserData?) -> Void)` +Extension to `URL` + +- `.isOAuthUrl -> Bool` + - Responds to whether the url is one of the supported 3rd party redirect URLs in a OAuth protocol + - Useful if implementing `WKNavigationDelegate` on your own (not recommended) + ## Native Podcast Player & Picture in Picture video In order for your App to take advantage of these native features via the `ForemWebView` you'll need to configure a few things: