Skip to main content

Fetching Entitlements

When you want to bring the entitlements defined to the user's products, you can bring it with SDK's getEntitlements method. Entitlements allow app owners to determine what rights the app user has acquired through product purchases. Entitlements are returned only for purchased products. All purchased consumable, non-consumable and subscription entitlements defined for your products from this API It returns the response.

note

The aim of this feature is to create a mapping scheme that will developers to define their paid features with Appmate. This will allow them to map their products to their paid features, effectively allowing product management without additional development effort.

Request#

Parameter NameType
listenerReceivedDataListener<List<String>?, GenericError>

Response#

Parameter NameType
onSucceededList<String>
onFailedGenericError
PurchaseClient.instance.getEntitlements (    object : ReceivedDataListener<List<String>, GenericError> {        override fun onSucceeded(data: List<String>) {        }
        override fun onError(error: GenericError) {        }    })