MonetaryTokenDelegate

@protocol MonetaryTokenDelegate <NSObject>

MonetaryTokenizer Result Protocol

  • Called when MonetaryTokenizer begins tokenizing user-input account data.

    Where implemented, this method will be called from a MonetaryTokenizer has begun tokenzing user-input account data.

    Declaration

    Objective-C

    - (void)tokenLoading;

    Swift

    func tokenLoading()
  • Called when MonetaryTokenizer successfully tokenizes user-input account data.

    Where implemented, this method will be called from a MonetaryTokenizer that has successfully tokenized user-input account data.

    Declaration

    Objective-C

    - (void)tokenCreated:(MonetaryToken *)token;

    Swift

    func tokenCreated(token: MonetaryToken!)

    Parameters

    token

    A MonetaryToken object containing the token properties of the tokenized user-entered account data.

  • Called when MonetaryTokenizer fails to tokenize user-input account data.

    Where implemented, this method will be called from a MonetaryTokenizer that has failed to tokenized user-input account data.

    Declaration

    Objective-C

    - (void)tokenizationError:(NSError *)error;

    Swift

    func tokenizationError(error: NSError!)

    Parameters

    error

    An NSError object containing details of the tokenization failure.

  • Called when user cancels MonetaryTokenizer account data input process.

    Where implemented, this method will be called from a MonetaryTokenizer from which user has cancelled the account data input process.

    Declaration

    Objective-C

    - (void)tokenizationCancelled;

    Swift

    func tokenizationCancelled()