intercept Received Message
public abstract boolean interceptReceivedMessage(Message message, int left, boolean hasPackage, boolean offline)
Called when a real-time or offline message is received.
Offline message batching notes:
- The server packs up to 200 messages per batch.
hasPackageindicates whether additional batches remain on the server.leftindicates remaining messages in the current batch after this one.- Offline sync is complete when both
hasPackageandleftare0.
Return
true to intercept (SDK will not process further); false to pass through
Parameters
message
the received message
left
remaining message count in the current batch
has Package
whether additional message batches remain on the server
offline
whether this message is an offline message