Safari
In-app browser, or hand off to Safari
Safari.present opens a page inside the app and returns when it closes. Safari.open hands the URL to the system browser and carries on. In-app only; check isAvailable.
Properties
isAvailableBooleanFalse in a widget.
Methods
Safari.present(url, options?)voidIn-app browser. Blocks until it is dismissed.
- url String required
The page to open.
- options Any
- readerMode Boolean
Open in Reader when the page supports it.
- readerMode Boolean
Safari.open(url)voidHands the URL to the system browser.
- url String required
Examples
Reading a link
Safari.present("https://example.com", { readerMode: true });