Functions
The following functions are available globally.
-
Generates a String of JS code that is to be evaluated when the Oauth capture activity is finished and we have the response to notify Connect with
Declaration
Swift
public func getOauthCaptureCompletionJavascript(jsonRPCResponseData: Data) -> StringParameters
jsonRPCResponseDataThe Data for the response object that we are emitting to Connect via the SmartcarSDKResponse CustomEvent
-
Returns a JS snippet that creates a global
SmartcarSDKobject with asendMessagemethod to pass data from JS -> iOS.Declaration
Swift
public func getSdkShimJavascript(channelName: String) -> String -
Undocumented
Declaration
Swift
public func injectSdkShimJavascript(webView: WKWebView, channelName: String)
View on GitHub
Functions Reference