<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "applicensedeliverysdk",
  "identifier" : "/documentation/AppLicenseDeliverySDK/ALDLicenseAttribute/duration",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App License Delivery SDK"
    ],
    "preciseIdentifier" : "s:3ALD19ALDLicenseAttributeV8durations6UInt64Vvp"
  },
  "title" : "duration"
}
-->

# duration

The maximum amount of time, in seconds, that iOS considers the license valid.

```
var duration: UInt64
```

## Discussion

The alternative app marketplace determines a value for this property at its discretion. iOS doesn’t let an app launch if the duration of its license lapses.

A value of `0` indicates that the license doesn’t expire. To revoke a license, see [Renewing and revoking app licenses](/documentation/applicensedeliverysdk/renewing-and-revoking-app-licenses).

For an example that sets this property, see [Licensing alternative distribution apps](/documentation/applicensedeliverysdk/licensing-alternative-distribution-apps).

---

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)