ComponentSubscriber
Protocol that component classes must conform to in order to be utilized by the SDK
/// Protocol for call-back events
public protocol ComponentSubscriber {
var staticComponentID: String { get set }
var dynamicComponentID: String { get set }
var component: DeployedWorkflow_components { get set}
init(dynamicComponentID: String, staticComponentID: String, component: DeployedWorkflow_components)
func componentWillDeInit(final: Bool)
func acceptNewInputs(inputs: [DataInput])
func navigateButtonTriggeredByFramework()
}
public extension ComponentSubscriber {
func navigateButtonTriggeredByFramework() {
print("default navigate button clicked")
}
}
Last updated