enableMockNetworkRequestsAndDropEventsMode

Testing utility method that enables mocking for all Braze SDK network requests, essentially turning the SDK "off".

Calls to the Braze server will be mocked and return success responses with no content (i.e. no in-app messages or News Feed cards will be received). All events dispatched while this mode is enabled will be dropped, meaning sessions or events logged while in this mode will almost certainly be lost.

To have effect, this method MUST be called before any call to getInstance() in a given app run (in the onCreate() method of your application is a good place).

This method is intended to be used for CI and other automated solutions, to prevent test data from polluting your Braze dashboard. This method should not be used in a production environment.

Return

true if this was called before the first call (and will have effect) to getInstance() or else false.