public class ZendriveDebug extends Object
Constructor and Description |
---|
ZendriveDebug() |
Modifier and Type | Method and Description |
---|---|
static void |
uploadAllZendriveData(Context context,
ZendriveConfiguration zendriveConfiguration,
ZendriveNotificationContainer notificationContainer,
ZendriveOperationCallback callback)
Upload all zendrive related data that will help in debugging
|
public static void uploadAllZendriveData(Context context, @Nonnull ZendriveConfiguration zendriveConfiguration, @Nonnull ZendriveNotificationContainer notificationContainer, @Nullable ZendriveOperationCallback callback)
This will make the app go in foreground and start uploading data related to Zendrive. It doesn't require SDK to be setup to make this call and should work correctly irrespective of whether the SDK is setup or not.
Whenever this method is called, it uploads 10s of MBs of data to the Zendrive server.
context
- is the context object of the enclosing application.zendriveConfiguration
- The ZendriveConfiguration
properties which was used to
setup the Zendrive SDK. Cannot be null.notificationContainer
- A ZendriveNotificationContainer
that is used to display
notification when the sdk goes foreground while upload.
Please use setOnlyAlertOnce to ensure the user is notified only once.callback
- The ZendriveOperationCallback
callback to be invoked
after upload. It will be invoked on the same thread where setup
is called. This can be null if no callback is desired by the
application.