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.
#
RequestParameter Name | Type |
---|---|
listener | ReceivedDataListener<List<String>?, GenericError> |
#
ResponseParameter Name | Type |
---|---|
onSucceeded | List<String> |
onFailed | GenericError |
- Kotlin
- Java
PurchaseClient.getInstance().getEntitlements ( new ReceivedDataListener<List<String>, GenericError>() { @Override public void onSucceeded(List<String> data) { }
@Override public void onError(GenericError error) { } });
PurchaseClient.instance.getEntitlements ( object : ReceivedDataListener<List<String>, GenericError> { override fun onSucceeded(data: List<String>) { }
override fun onError(error: GenericError) { } })