Module
open class Module : NSObject
Geotab Module base class
-
Module’s javascript name
Declaration
Swift
public let name: String
-
Functions that reside in this module’s in Javascript namespace.
Declaration
Swift
public var functions: [ModuleFunction]
-
Declaration
Swift
public init(name: String)
Parameters
name
String. This module’s Javascript namespace.
-
Returns the module function with the given name or
nil
if not found.Declaration
Swift
public func findFunction(name: String) -> ModuleFunction?
-
Javascript snippets to be injected into the WKWebview instance for communicating with this Module and its contained ModuleFunctions. Add any scripts generated by a super method.
Declaration
Swift
open func scripts() -> String