Expiration details, that indicate whether a given package is out of date. More...
|Expiration(const Expiration &other)|
|Expiration &||operator=(const Expiration &other)|
|Expiration &||operator=(Expiration &&other)|
Expiration details, that indicate whether a given package is out of date.
Expiration details can indicate that the package in question:
- is still valid.
- has expired and should be used with caution (see ExpirationType::allowExpiredAccess).
- has expired and can no longer be used (see ExpirationType::PreventExpiredAccess).
Note: You cannot create an object of this class.
Member Function Documentation
Expiration::Expiration(const Expiration &other)
Copy constructor from other Expiration.
Move constructor from other Expiration.
QDateTime Expiration::dateTime() const
Gets the date and time when the package will expire.
This property is in Unix time (milliseconds since Epoch) using UTC.
Gets whether this Expiration object is empty.
true if empty.
Returns whether the current package has expired.
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.
QString Expiration::message() const
Gets an accompanying message which provides contextual information when the package has expired.
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.
Esri::ArcGISRuntime::ExpirationType Expiration::type() const
Gets the type of expiration for the given package.
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 (ExpirationType::AllowExpiredAccess).
- It can no longer be used and will fail to load (ExpirationType::PreventExpiredAccess).
Expiration &Expiration::operator=(const Expiration &other)
Assignment operator from other GenerateOfflineMapParameters.
Expiration &Expiration::operator=(Expiration &&other)
Move operator from other Expiration.