ZendriveDebug Class Reference
Inherits from | NSObject |
Declared in | ZendriveDebug.h |
Class Methods
handleEventsForBackgroundURLSession:completionHandler:
@abstract Tell the SDK that events for a NSUrlSession are waiting to be processed.
+ (void)handleEventsForBackgroundURLSession:(nonnull NSString *)identifier completionHandler:(nonnull void ( ^ ) ( void ))completionHandler
Parameters
- identifier
The identifier in application:handleEventsForBackgroundURLSession:completionHandler:
- completionHandler
The completionhandler in application:handleEventsForBackgroundURLSession:completionHandler:
Discussion
@abstract Tell the SDK that events for a NSUrlSession are waiting to be processed.
@discussion The call to application:handleEventsForBackgroundURLSession:completionHandler: method of UIApplicationDelegate should be forwarded here if it is a Zendrive session identifier. This will ensure the correct handling of the relevant session creation and callbacks to the delegate.
Declared In
ZendriveDebug.h
isZendriveSessionIdentifier:
@abstract Check using a session identifier if the corresponding session was started for data upload.
+ (BOOL)isZendriveSessionIdentifier:(nonnull NSString *)identifier
Parameters
- identifier
The identifier in application:handleEventsForBackgroundURLSession:completionHandler:
Discussion
@abstract Check using a session identifier if the corresponding session was started for data upload.
@discussion Typically this method should be used to check the ownership of a session idenfier obtained in application:handleEventsForBackgroundURLSession:completionHandler: method of UIApplicationDelegate
Declared In
ZendriveDebug.h
uploadAllZendriveDataWithZendriveConfiguration:delegate:
@abstract Upload all zendrive related data that will help in debugging.
+ (void)uploadAllZendriveDataWithZendriveConfiguration:(nonnull ZendriveConfiguration *)configuration delegate:(nullable __weak id<ZendriveDebugDelegateProtocol>)delegate
Parameters
- configuration
The configuration object which should have valid value of applicaitonKey and driverId.
- delegate
The delegate which will receive success or failure callbacks. No callback will be deliverd if the user force terminates the app while a download is going on.
Discussion
@abstract Upload all zendrive related data that will help in debugging.
@discussion The method uploads all data to the zendrive servers via a background upload task. This does not require the Zendrive SDK to be setup but needs a valid application key. This is a no-op if upload is already in progress.
Declared In
ZendriveDebug.h