Customer Info
This section refers to CustomerDetail and CustomerInfo modules.
Flow overviewFlowchart of this module's usage within the SDK flow. Expand to view it, click the chart to enlarge.
- U1, U2: set
AmaniDelegatewithsetDelegate(delegate:), then start the session withinitAmani(...)(optional SSL pinning before it). - After that, each call is independent: call it whenever your app needs it, e.g. on a button tap, in any order.
- U3:
customerInfo().getCustomer()to show the customer's data. - U4:
setInfo(occupation:address:), thenupload(location:); callsetInfobefore every upload. - U5:
enablePin(_:)/disablePin; the result is.successor.failure.