Skip to content

Unconditional Delivery Listeners

The where clause argument in the addUpdateListener method is optional. When it is not provided, the real-time database will deliver any object  which is being updated in the database's table:

EventHandler<Map> orderEventHandler = Backendless.data.of("Order").rt();

orderEventHandler.addUpdateListener((updatedOrder) {
  print("An Order object has been updated. Object ID - ${updatedOrder['objectId']}");
});
EventHandler<Order> orderEventHandler = Backendless.data.withClass<Order>().rt();

orderEventHandler.addUpdateListener((updatedOrder) {
  print("An Order object has been updated. Object ID - ${updatedOrder.objectId}");
});