Javascript API Documentation
<script src="https://pcdn2.swing2app.co.kr/swing_public_src/v3/2024_02_28_002/js/swing_app_on_web.js"></script>WebView Javascript API Specifications
Webview Control Related Methods
• Webview Backwards
swingWebViewPlugin.app.webview.back();• Webview Forward
swingWebViewPlugin.app.webview.forward();• Go to Webview Home
• Clean Web Cache
Controlling the Toolbar methods
• Enabling the Toolbar
Application-related methods
• Get platform information
• Get version and device information
• Close application
• Run a URL with an external browser
• Run URLs with the embedded browser
• Share the current page
• Share a custom URL
• Checking the notification setting status of the application
• Saving Text to Clipboard
• Activate Push Notification
• Inactivate Push Notification
• Saving Variables on the Device
• Retrieving Saved Variables on the Device
• Playing TTS (Premium Feature) - Customization Required
• Checking First App Launch
Methods for Controlling App UI
• Setting Background Color for iOS
Method for Controlling App Screen
• Navigating to Settings Screen
• Navigating to Notification List Screen
• Navigating to Menu Screen
• Navigating to Bookmark List Screen
Application Event
• Adding WebView Navigation Event for Android App Back Key
• Adding Exit Event for Android App Back Key
Methods related to AdMob
• Show banner ads
Parameter
Explanation
Example values
Parameter
Explanation
Example values
Last updated