Class: EntitlementExpirationService

EntitlementExpirationService

ExpirationService

Checks if entitlements are still valid according to their expiration and handles refreshing of expired entitlements


new EntitlementExpirationService(player)

Constructor

Parameters:
Name Type Description
player Player

Methods


errorForReason(error)

Error for reason

Returns a human readable string for expiration error

Parameters:
Name Type Description
error String
Returns:

Human readable error string

Type
String

hasLicenseExpiration(entitlement)

Checks if the current entitlement has a license expiration

Parameters:
Name Type Description
entitlement Entitlement
Returns:

Bool Does entitlement have an expiration?


refreshEntitlement(entitlement)

Refresh entitlement

Asks the entitlement engine to re-request the entitlement using the previously used data.

Parameters:
Name Type Description
entitlement Entitlement