JavaScriptRunner
JavaScriptRunner
API
public class JavaScriptRunner {
public init()
public func registerClass(_ exportable: any DSSDK.JavaScriptExportable)
public func runScript(_ script: String) throws -> JSValue
public func runScriptWithCallback(_ script: String, onComplete: @escaping (Bool) -> Void, withView: @escaping (String) -> Void) throws
public func runScriptedMeData(_ script: String, onSuccess: @escaping (String?) -> Void, onError: @escaping (String) -> Void) throws -> JSValue
@objc deinit
}
Public Functions
public func registerClass(_ exportable: any DSSDK.JavaScriptExportable)
public func runScript(_ script: String) throws -> JSValue
public func runScriptWithCallback(_ script: String, onComplete: @escaping (Bool) -> Void, withView: @escaping (String) -> Void) throws
public func runScriptedMeData(_ script: String, onSuccess: @escaping (String?) -> Void, onError: @escaping (String) -> Void) throws -> JSValue