FreSwiftController
public protocol FreSwiftController
FreSwiftController: Protocol for Swift classes to conform to
-
FREContext
Declaration
Swift
var context: FreContextSwift! { get set }
-
Tag used when tracing logs
Declaration
Swift
static var TAG: String { get set }
-
trace(_:
Extension method) trace: sends StatusEvent to our swc with a level of “TRACE”
trace("Hello")
Declaration
Swift
func trace(_ value: Any...)
Parameters
value
value to trace to console
Return Value
Void
-
info(_:
Extension method) info: sends StatusEvent to our swc with a level of “TRACE” The output string is prefixed with ℹ️ INFO:
info("Hello")
Declaration
Swift
func info(_ value: Any...)
Parameters
value
value to trace to console
Return Value
Void
-
warning(_:
Extension method) warning: sends StatusEvent to our swc with a level of “TRACE” The output string is prefixed with ⚠️ WARNING:
warning("Hello")
Declaration
Swift
func warning(_ value: Any...)
Parameters
value
value to trace to console
Return Value
Void
-
dispatchEvent(name:
Extension methodvalue: ) dispatchEvent: sends StatusEvent to our swc with a level of name and code of value replaces DispatchStatusEventAsync
dispatchEvent("MY_EVENT", "ok")
Declaration
Swift
func dispatchEvent(name: String, value: String)
Parameters
name
name of event
value
value passed with event
Return Value
Void