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.0

Since

Since 1.0
  • Gets the list of IdvMethod

    Declaration

    Swift

    func idvMethods(completion: ((_ idvMethods: [IdvMethod]?,
                                        _ error: Error?) -> Void)?)

    Return Value

    • idvMethods: Gets the list of Idv Method that are available
    • error: when there’s something wrong in the process otherwise nil

  • Activate Binding with or without OTP. If OTP is provided, the TMGSDK will call the server to validate it. However if the OTP is not provided, the TMGSDK does not call the server and activate the binding locally.

    Declaration

    Swift

    func submitIdvMethod(idvMethod: IdvMethod,
                               completion: ((_ otpActivationStatus: OtpActivationStatus?,
                                             _ error: Error?) -> Void)?)

    Parameters

    idvMethod

    Of type IdvMethod.

    Return Value

  • Activate Binding with or without OTP. If OTP is provided, the TMGSDK will call the server to validate it. However if the OTP is not provided, the TMGSDK doesn’t call the server and activate the binding locally.

    Declaration

    Swift

    func activateBinding(otp: String?,
                               completion: ((_ error: Error?) -> Void)?)

    Parameters

    otp

    could be nil if using not suitable IdvMethod.

    Return Value

    • error: if any, otherwise the operation is success.

  • Get the previously selected IdvMethod

    Declaration

    Swift

    func previouslySelectedIdvMethod(completion: ((_ idvMethod: IdvMethod?,
                                                         _ error: Error?) -> Void)?)

    Return Value

    • idvMethod: to capture previously selected IdvMethod to bind the vProvisionedTokenId.
    • error: if any, otherwise the operation is success.