Play Billing 5.0.0 Kotlin - How to override onProductDetailsResponse()?

Viewed 24

please reference this doc.

It states: "To handle the result of the asynchronous operation, you must also specify a listener which implements the ProductDetailsResponseListener interface. You can then override onProductDetailsResponse(), which notifies the listener when the query finishes, as shown in the following example:"

Trouble is, there's no such listener in the Kotlin example (there is one in the Java example.)

When I add:

override fun onProductDetailsResponse() { ... }

I get "nothing to override" from the SDK. Is it the case that Java needs the interface but Kotlin doesn't?

Thank you!

0 Answers
Related