GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

Global Delegate - React Native

The SDK is triggering global delegate events that the hosting application can choose to handle. You can find more information about the different delegates functions on the native section here.


Declaration

BlazeSDK.init({
    ...,
    globalDelegate: {
      onEventTriggered: (params => {
        console.log('GlobalDelegate - onEventTriggered - event_action: ' + params.event.event_action);
      }),
      onErrorThrown: (params => {
        console.error('GlobalDelegate - onErrorThrown - error: ' + params.error);
      })
    }
})

Did this page help you?