-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create CustomerCenterListener
#2199
base: main
Are you sure you want to change the base?
Conversation
@RevenueCat/coresdk can you please take a look at this draft, I would like to make sure I get the public stuff right before continuing implementing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there is anything we can do to make the interface in kotlin... Probably not the end of the world though. Looking good!
* The listener is responsible for handling actions that happened in the Customer Center. | ||
* Make sure [removeCustomerCenterListener] is called when the listener needs to be destroyed. | ||
*/ | ||
var customerCenterListener: CustomerCenterListener? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we would want to support multiple listeners... But then again, this is the API we have for the CustomerInfo
, so it might make more sense to be consistent 👍
purchases/src/main/java/com/revenuecat/purchases/customercenter/CustomerCenterListener.java
Outdated
Show resolved
Hide resolved
...main/kotlin/com/revenuecat/purchases/ui/revenuecatui/customercenter/CustomerCenterOptions.kt
Outdated
Show resolved
Hide resolved
...main/kotlin/com/revenuecat/purchases/ui/revenuecatui/customercenter/CustomerCenterOptions.kt
Outdated
Show resolved
Hide resolved
📸 Snapshot Test260 unchanged
🛸 Powered by Emerge Tools |
5fc0c06
to
0bce4b8
Compare
This will allow developers to listen to events that occur inside the Customer Center