Expiration QML Type
Expiration details, that indicate whether a given package is out of date. More...
|Import Statement:||import Esri.ArcGISRuntime|
Expiration details can indicate that the package in question:
- is still valid.
- has expired and should be used with caution (see Enums.ExpirationTypeAllowExpiredAccess).
- has expired and can no longer be used (see Enums. ExpirationTypePreventExpiredAccess).
Note: You cannot declare or create a component of this type in QML code.
dateTime : date
The date and time when the package will expire (read-only).
This property is in Unix time (milliseconds since Epoch) using UTC.
expired : bool
Whether the current package has expired (read-only).
This property shows whether the given package was expired at the time it was loaded. Subsequent checks can be made by performing a comparison of the current time against the dateTime property.
message : string
An accompanying message which provides contextual information when the package has expired (read-only).
The message could indicate the reasons for expiration or where an up-to-date version of the data can be obtained from. The author of the package may have configured the message to contain raw text, hyperlinks or HTML.
The message can be empty.
type : Enums.ExpirationType
The type of expiration for the given package (read-only).
This property indicates what expiration entails for a given package. That is, when the package expires:
- It is out-of-date but can still be used (Enums.ExpirationTypeAllowExpiredAccess).
- It can no longer be used and will fail to load (Enums.ExpirationTypePreventExpiredAccess).