canMakePayments

expect fun canMakePayments(features: List<<Error class: unknown class>> = listOf(), callback: (Boolean) -> Unit)

Note: This method only works for the Google Play Store and App Store. There is no Amazon equivalent at this time. Calling from an Amazon-configured app will return true.

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

Parameters

features

Play Store only. 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.

actual fun canMakePayments(features: List<<Error class: unknown class>>, callback: (Boolean) -> Unit)