Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpuetz committed Feb 4, 2022
1 parent 764514a commit bfd8577
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/ForemWebView-deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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:
Expand Down

0 comments on commit bfd8577

Please sign in to comment.