DeviceProvisioningUIProtocol
public protocol DeviceProvisioningUIProtocol
Device Provisioning UI Protocol
-
Returns an instance of the class conforming to
DeviceProvisioningUIProtocolprotocolDeclaration
Swift
static func instance() -> DeviceProvisioningUIProtocol -
Prompts the user to enter a phone number for enrollment.
Note
The UI class conforming toDeviceProvisioningUIProtocolis responsible for validating the entered number and making sure it includes the country code. Or else Usher SDK will return with error.Declaration
Swift
func promptPhoneNumberEnrollment(badge: Badge, completion: @escaping (_ phoneNumber: String?, _ errorHandler: UsherFailureHandler?) -> Void)Parameters
badgeThe badge requiring device provisioning
completionCompletion of user phone number entry.
-
Prompts the user to confirm sending a verification code to the enrolled phone number via SMS.
Declaration
Parameters
badgeThe badge requiring device provisioning
intentThe intent for the provisioning. See
MFAIntentfor optionscompletionCompletion after user confirmation
-
Prompts user to enter verification code sent to device.
Declaration
Parameters
badgeThe badge requiring device provisioning
tempPhoneNumberA phone number in case there is no enrolled phone number for the badge. This parameter will have a value in fresh enrollment of phone number workflow.
intentThe intent for the provisioning. See
MFAIntentfor optionscompletionCompletion after user entered verification code.
-
Dismiss all UIs presented.
Declaration
Swift
func dismiss()
DeviceProvisioningUIProtocol Protocol Reference