<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreTelephony",
  "identifier" : "/documentation/CoreTelephony/CTCellularPlanStatus/checkValidity(ofToken:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Telephony"
    ],
    "preciseIdentifier" : "c:objc(cs)CTCellularPlanStatus(cm)checkValidityOfToken:completionHandler:"
  },
  "title" : "checkValidity(ofToken:completionHandler:)"
}
-->

# checkValidity(ofToken:completionHandler:)

Checks the validity of the ICCID associated with the token.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)