Switchboard
object Switchboard
Switchboard V3 API
Functions
Link copied to clipboard
fun addEventListener(objectId: ObjectID, eventName: String, callback: SwitchboardEventCallback): SwitchboardResult<ListenerID>
Add an event listener to a Switchboard object
fun addEventListener(objectId: ObjectID, eventName: String, callback: (eventName: String, eventData: Any?) -> Unit): SwitchboardResult<ListenerID>
Add an event listener with a lambda callback
Link copied to clipboard
fun callAction(objectId: ObjectID, actionName: String, params: Map<String, Any> = emptyMap()): SwitchboardResult<String>
Call an action on a Switchboard object
Link copied to clipboard
Create a new engine from JSON configuration
Create a new engine with the given configuration
Link copied to clipboard
fun initialize(context: Context, appId: String, appSecret: String, extensions: Map<String, Any> = emptyMap()): SwitchboardResult<Unit>
Initialize the Switchboard SDK with configuration
Link copied to clipboard
Load an extension library using dlopen with RTLD_GLOBAL
Link copied to clipboard
Remove an event listener