-
Notifications
You must be signed in to change notification settings - Fork 17
How to use NUGUServiceKit for custom webview with javascript
jin-marino edited this page Jun 19, 2020
·
8 revisions
Wrote based on v0.12.0 (updated 2020.06.19)
NuguServiceWebView
is a customized webview inherited from WKWebView
.
// Static url for NUGU services setting
// TODO: - not decided yet, to be confirmed
public static let serviceSettingUrl = "https://stg-webview.sktnugu.com/3pp/intro.html"
// Set custom cookie by promised variables as NuguServiceCookie
public func setNuguServiceCookie(domain: String, nuguServiceCookie: NuguServiceCookie)
// load url request with url string and queries
public func loadUrlString(_ urlString: String?, with queries: [URLQueryItem]? = nil)
NuguServiceWebJavascriptDelegate
passes promised javascript method used in NUGU services webview with delegate methods
public func openExternalApp(openExternalAppItem: WebOpenExternalApp)
public func openInAppBrowser(url: String)
NUGU SDK for iOS
Sample Application
External links