SMSValidatorDelegate

public protocol SMSValidatorDelegate

Delegate for overriding the default SMS validation

  • Validates a given MSISDN.

    Declaration

    Swift

    @MainActor
    func validateSMS(msisdn: String, sender: String) async throws -> Bool

    Parameters

    msisdn

    The msisdn to validate.

    sender

    The identifier given to the sender of the SMS message.

    Return Value

    true if the phone number is valid, otherwise false.