Interface PushTransport.Callback
- Enclosing interface:
PushTransport
public static interface PushTransport.Callback
Receives events emitted by a custom transport.
-
Method Summary
Modifier and TypeMethodDescriptionvoidReports a registration or transport error.voidDelivers a complete schema-3 JSON envelope.voidregistered(PushSubscription subscription) Reports initial registration or a later token rotation.voidConfirms that native unregistration completed.
-
Method Details
-
registered
Reports initial registration or a later token rotation.- Parameters:
subscription- the current subscription
-
unregistered
void unregistered()Confirms that native unregistration completed. -
message
Delivers a complete schema-3 JSON envelope.- Parameters:
envelopeJson- the encoded envelope
-
failed
Reports a registration or transport error.- Parameters:
error- the error details
-