Unverified Commit 93580f34 authored by Jonathan Almeida's avatar Jonathan Almeida
Browse files

Close #5913: Remove deprecated WebPushHandler.onSubscriptionChanged API

parent 2f4dba99
......@@ -21,13 +21,6 @@ interface WebPushHandler {
*/
fun onPushMessage(scope: String, message: ByteArray?)
/**
* Invoked when a subscription has now changed/expired.
*
* This will be deprecated after GeckoView 75; see: https://github.com/mozilla-mobile/android-components/issues/5913
*/
fun onSubscriptionChanged(subscription: WebPushSubscription) = Unit
/**
* Invoked when a subscription has now changed/expired.
*/
......
......@@ -38,7 +38,7 @@ feature.shutdown()
// To receive the subscription info for all the subscription changes.
feature.register(object : AutoPushFeature.Observer {
override fun onSubscriptionChanged(subscription: AutoPushSubscription) {
override fun onSubscriptionChanged(scope: PushScope) {
// Handle subscription info here.
}
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment