Contents

checkValidity(ofToken:completionHandler:)

Checks the validity of the ICCID associated with the token.

Declaration

class func checkValidity(ofToken token: String, completionHandler: @escaping  @Sendable (Bool, (any Error)?) -> Void)
class func checkValidity(ofToken token: String) async throws -> Bool

Parameters

  • token:

    The token to validate.

  • completionHandler:

    A closure the framework calls with a Boolean indicating whether the ICCID is present and turned on, and any error that occurs.

Discussion

The isValid parameter in the completion handler is true when the ICCID associated with the token is present and turned on.