License expiration handling#
Applies to LUNA ID for Android only.
To retrieve the expiration date of any of the licensed features, use the following method:
fun getExpirationLicenceDateAsDate(feature: LicenseFeature): java.util.Date?
The LicenseFeature enum defines the licensable components:
enum class LicenseFeature {
Detection,
BestShot,
Liveness,
MedicalMaskDetection
}
LicenseExpired event#
The LicenseExpired event signals when the active license has expired or when a required feature is no longer valid due to time constraints.
FeatureExpired error#
When the FeatureExpired error occurs, LUNA ID logs detailed diagnostic information about the expired features:
- Feature names that have expired.
- Exact expiration time (as a Unix timestamp in seconds, in the
expiresAtfield).
| Category | Features logged |
|---|---|
| Always | DetectionBestShot |
| Conditionally | Liveness — if OneShotLiveness estimation is enabled in the session.MedicalMaskDetection — if mask acceptance is disabled (acceptMask = false). |