You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both objective-c and Kotlin counterparts offer a method 'setOffline'.
/**
* Sets offline. If offline is true, then the SDK will not upload events to Amplitude servers;
* however, it will still log events.
*
* @param offline whether or not the SDK should be offline
* @return the AmplitudeClient
*/
public AmplitudeClient setOffline(boolean offline) {
this.offline = offline;
// Try to update to the server once offline mode is disabled.
if (!offline) {
uploadEvents();
}
return this;
}
Summary
Expose
setOffline
via the flutter pluginBoth objective-c and Kotlin counterparts offer a method 'setOffline'.
Motivations
Prevent uploading events to Amplitude server in special conditions.
The text was updated successfully, but these errors were encountered: