Starting flow
To start your prepared flow all you should do is call a method on shared ElkycSDK.
This method take 5 parameters
appKey - application key, this key could be obtained at the portal
clientKey - client key, this key could be obtained at the portal
clientSession - Optional. This is unique identifier which you can use to identify your client session.
flow - flow variable, it should consist one or more steps
viewController - viewController from which flow will be presented
completion - completion handler, here you will receive error from any step or an array with FlowResult struct
FlowResult
FlowResult is a struct where you can find the answer from a step, the array of FlowResult's will be received in the end of the flow. An array should be ordered by steps order.
The response result should be casted to a specific object. For that the type field have typeHint variable which can help cast result to a right object.
If you want to add your specific result to a flow use this method on a ElkycSDK shared instance.
Last updated