ModuleFunction
open class ModuleFunction
Defines a function to be included in a Geotab module’s Javascript API. Intended for internal Drive and MyGeotab use.
-
Declaration
Swift
public let name: String
-
Declaration
Swift
public init(module: Module, name: String)
Parameters
module
Module. The module this function should reside in.
name
String. Name of the Javascript function defined.
-
Declaration
Swift
open func handleJavascriptCall(argument: Any?, jsCallback: @escaping (Result<String, Error>) -> Void)