Companion
Properties
A sentinel value denoting that the runtime configuration's cache should be cleared.
A custom IBrazeNotificationFactory to be used to modify or create Braze push notifications.
Returns whether delayed initialization is enabled when either:
Returns whether the SDK is disabled when either:
Returns whether the SDK is disabled or delayed initialization is enabled.
A list of device models matching known app crawlers. All device models must be in lowercase.
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.
A queued list of BrazeConfig objects made to ".configure()" that will be applied once the singleton is instantiated.
An IEventMessenger to store client external subscriptions and survive calls to wipeData.
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 delayed initialization after an invocation of Braze.enableDelayedInitialization or after setting com_braze_enable_delayed_initialization to true in braze.xml. Note that this feature is disabled by default.
Disables the Braze SDK. This call persists across Braze SDK instances until Braze.enableSdk is called.
Enables delayed initialization. This call persists across Braze SDK instances until Braze.disableDelayedInitialization 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.
Requests triggers on the BrazeManager object if the Intent represents a test in-app message push.
Creates an IBrazeEndpointProvider for any endpoint configured via braze.xml or BrazeConfig.
Sets an IBrazeEndpointProvider to be used to route Braze API traffic
Stops the instance by shutting down or cancelling any work on the SDK. Note that this renders the current instance SDK unusable.