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) -> String

    Parameters

    jsonRPCResponseData

    The Data for the response object that we are emitting to Connect via the SmartcarSDKResponse CustomEvent

  • Returns a JS snippet that creates a global SmartcarSDK object with a sendMessage method to pass data from JS -> iOS.

    Declaration

    Swift

    public func getSdkShimJavascript(channelName: String) -> String
  • Undocumented

    Declaration

    Swift

    public func injectSdkShimJavascript(webView: WKWebView, channelName: String)