Skip to content

Bulk Create Listener

A registered listener will receive a real-time request for all bulkCreate API requests.

EventHandler<Map> eventHandler = Backendless.data.of("TABLE-NAME").rt();
eventHandler.addBulkCreateListener(void Function(List<Map> objectIds) callback);
EventHandler<T> eventHandler = Backendless.data.withClass<T>().rt();
eventHandler.addBulkCreateListener(void Function(List<Map> objectIds) callback);

Return value

The callback delivers a collection of objectId values for the objects saved in the database.

Removing listeners

The method removes all registered listeners for the bulk update event:

eventHandler.removeBulkCreateListeners();

Removing a specific listener

This method removes a listener identified by the callback object:

eventHandler.removeBulkCreateListener(void Function(List<Map>) callback);