addOnSend

open fun addOnSend(@NonNull onSend: OnSendCallback)

Add a callback which will be invoked prior to an event being delivered to Bugsnag. The callback can be used to modify events or cancel delivering the event altogether by returning false. Note that the callback may be invoked in the current or a subsequent app launch depending on whether the app terminated prior to delivering the event.

Parameters

onSend

the callback to add

See also