iOS Trust SDK Native Interface

This page describes all classes that represent the public API interface between mobile developer integrators and the Daon Trust SDK.

DaonTrustSDK

Represents the main entry point to the Daon Trust SDK.

Method NameDescription
DaonCompositeSDK(withViewController: self, delegate: self)Default constructor that requires host activity and DaonEventListener as a Trust SDK event listener.
start(withDaonOptions: options)Starts the onboarding flow with SDK options object.

DaonOptions

Field NameDescription
String serverUrlServer URL that will be used to initialize the Trust SDK.
TimeInterval initializationTimeoutThe allotted wait time for the Trust SDK to initialize. Default value is 10 seconds (10000L).
String qrInstructionLabelDescription label in QR scan screen. If not set, the label will not be shown.
String spinnerLabelDescription label under spinner while loading scanned QR. If not set, the label will not be shown.
String nfcLicense

NFC SDK license that is necessary for NFC scanning process to

function correctly. This parameter can be set to the name of the .txt

file where the license is OR the license JSON itself.

Boolean isWebLoadedEnabled

Web loaded is a safety feature of the Trust SDK.

onboarding web app that indicates when a valid web page has loaded. By

default, this feature is set to true. This feature should be disabled

only for development/debug purpose.

Boolean isWebToolbarEnabledWhitelisting is a safety feature of the Trust SDK that indicates if the web page is whitelisted. By default, this feature is set to true. This feature should be disabled only for development/debug purpose.
Boolean isAnalyticsEnabledThe default value is TRUE. Optional parameter that indicates whether event logging is enabled or not.

DaonEventListener/ DaonEventDelegate

Method NameDescription
didReceive(successResponse daonEvent: DaonEvent)Event that will happened when user finishes the flow.
didReceive(failedResponse daonEvent: DaonEvent)

Termination event - This will be triggered if a critical event occurs and the user is unable continue the flow. Additional data will be

provided through the event object.

didReceive(infoResponse daonEvent: DaonEvent)Runtime event that will inform integrator on current SDK progress. Additional data will be provided though event object.

DaonEvent

Field NameDescription
DaonEventCode codeField that contains event code.
descriptionField that contains description/reason of the event.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard