OutSystems.com
My Platform
Community
Support
Training
Training
Guided Paths
Build an App
Training Planner
Courses
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Downloads
Search in OutSystems
Log in
Sign Up
Community
›
Forge
›
Assets list
›
Sample Safari View And Custom Chrome Tab
assif_tiger
Created on 13 February 2019
Login to follow
Sample Safari View And Custom Chrome Tab
Stable version
1.0.3
(Compatible with
OutSystems 11
)
Uploaded on
23 April 2020
by
Try now
Mobile
0.0
(0 ratings)
0 reviews
120
8
Overview
Reviews
Versions
Documentation
Support
Sample Safari View And Custom Chrome Tab
Try now
Documentation
1.0.3
Draft
Highlights
isAvailable
: isAvailable(callback)
Show
: It accepts an options object and a success and fail callbacks.
show({options}, successCallback, failCallback)
iOS Options :
url
- String (required)
enterReaderModeIfAvailable
- Boolean (default false)
hidden
- Boolean (default false), you can use this to load cookies etc in the background.
animated
- Boolean (default true), note that 'hide' will reuse this preference (the 'Done' button will always animate though)
transition
- String, (this only works in iOS 9.1/9.2 and lower) unless animated is false you can choose from: curl, flip, fade, slide (default)
tintColor
- String, ("#00ffff", default is ios blue)
barColor
- String, ("#0000ff", on iOS 10+ you can change the background color as well)
controlTintColor
- String, ("#ffffff", on iOS 10+ you can override the default tintColor)
Android Options :
url
- String (required)
showDefaultShareMenuItem
- Boolean (default false)
toolbarColor
- String, ("#0000ff", you can change the tool bar color as well)
animated
- Boolean (default true)
transition
: String, (default: "slide" (it's also the only animation available at the moment) The browser window will slide in from the right.
successCallback
: Called once when the tab is loaded and once when it is closed. an object with one property:
event
that describes what happened is supplied (equals to either 'opened' or '
loaded
' or '
closed
').
failCallback
: Return boolean status 'false' and message.
Only for Android
connectToService
-
connectToService(successCallback, failCallback)
- Connect to the Chrome's custom tabs service. you must call this method before calling any of the other methods listed below.
warmUp
-
warmUp(successCallback, failCallback)
- Call this method whenever there's a chance the user will open an external url.
mayLaunchUrl
-
mayLaunchUrl(url, success, fail)
- for even better performance optimization, call this method if there's more than a 50% chance the user will open a certain URL.
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from
who created this asset.
Dependencies
Common Plugin
3.0.1
OutSystems UI
2.4.0
Safari View And Custom Chrome Tab
1.0.4
See all 3 dependencies
Loading...
Loading