use of com.amplifyframework.datastore.events.OutboxStatusEvent in project amplify-android by aws-amplify.
the class MutationProcessor method publishCurrentOutboxStatus.
/**
* Publish current outbox status to hub.
*/
private void publishCurrentOutboxStatus() {
HubEvent<OutboxStatusEvent> hubEvent = new OutboxStatusEvent(mutationOutbox.peek() == null).toHubEvent();
Amplify.Hub.publish(HubChannel.DATASTORE, hubEvent);
}
Aggregations