canMakePayments

fun canMakePayments(context: Context, features: List<BillingFeature> = listOf(), callback: Callback<Boolean>)

Check if billing is supported for the current Play user (meaning IN-APP purchases are supported) and optionally, whether a list of specified feature types are supported. This method is asynchronous since it requires a connected BillingClient.

Parameters

context

A context object that will be used to connect to the billing client

feature

A list of feature types to check for support. Feature types must be one of BillingFeature By default, is an empty list and no specific feature support will be checked.

callback

Callback that will be notified when the check is complete.

Sources

Link copied to clipboard