Companion
Properties
A custom IBrazeNotificationFactory to be used to modify or create Braze push notifications.
Returns whether the SDK is disabled when either:
Pauses or resumes outbound network requests from the Braze SDK at any point during runtime. Events are not lost during the offline state. Manual requests made from the Braze singleton will also be offline. Single shot requests in offline mode, (such as templating, image, and file requests) are lost and will not be repeated later. Basically, everything that is not an event logged to a session will be lost.
Functions
Clear the currently set IBrazeEndpointProvider.
Optional static method to set configuration values for the Braze singleton, overriding whatever values are present in the braze.xml. Calling this method at the beginning of each app run is encouraged.
Disables the Braze SDK. This call persists across Braze SDK instances until Braze.enableSdk is called.
Testing utility method that enables mocking for all Braze SDK network requests, essentially turning the SDK "off".
Enables the Braze SDK after an invocation of Braze.disableSdk. Note that the Braze SDK is enabled by default.
If an IBrazeEndpointProvider is configured, that provider's delegate is used to generate the Uri for the Braze API endpoint. Otherwise, return the Uri given.
A helper method to determine if the SDK is configured with an API key. Note that the SDK should not be called without a configured API key under any circumstances.
Static method that returns the latest Braze instance. All requests to Braze are made through this instance. There are no guarantees that previous instances will be the same so do not cache returned instances.
Sets an IBrazeEndpointProvider to be used to route Braze API traffic