PendingBindingSession
public protocol PendingBindingSession
PendingBindingSession is used to get vProvisionedTokenId session details with pending activation.
This object is retrieved when the token on the server is in BindingState.pendingActivation state
Version
Version 1.0Since
Since 1.0-
Activate Binding with or without
OTP. IfOTPis provided, theTMGSDKwill call the server to validate it. However if theOTPis not provided, theTMGSDKdoes not call the server and activate the binding locally.Declaration
Swift
func submitIdvMethod(idvMethod: IdvMethod, completion: ((_ otpActivationStatus: OtpActivationStatus?, _ error: Error?) -> Void)?)Parameters
idvMethodOf type
IdvMethod.Return Value
otpActivationStatus: otp activation status. Will only be returned whenIdvMethodtype isIdvType.appToApp,IdvType.customerService, orIdvType.outboundCallerror: when there’s something wrong in the process otherwisenil
-
Activate Binding with or without
OTP. IfOTPis provided, theTMGSDKwill call the server to validate it. However if theOTPis not provided, theTMGSDKdoesn’t call the server and activate the binding locally.Declaration
Swift
func activateBinding(otp: String?, completion: ((_ error: Error?) -> Void)?)Parameters
otpcould be
nilif using not suitableIdvMethod.Return Value
error: if any, otherwise the operation is success.
-
Get the previously selected
IdvMethodDeclaration
Swift
func previouslySelectedIdvMethod(completion: ((_ idvMethod: IdvMethod?, _ error: Error?) -> Void)?)Return Value
idvMethod: to capture previously selectedIdvMethodto bind thevProvisionedTokenId.error: if any, otherwise the operation is success.
PendingBindingSession Protocol Reference