ZendriveDebug
@interface ZendriveDebug : NSObject
Utility class which helps in uploading data required for debugging Zendrive SDK related issues.
-
Upload all zendrive related data that will help in debugging.
The method uploads all data to the zendrive servers via a background upload task. This does not require the
ZendriveSDK to be setup but needs a valid application key. This is a no-op if upload is already in progress.Declaration
Objective-C
+ (void) uploadAllZendriveDataWithZendriveConfiguration: (nonnull ZendriveConfiguration *)configuration delegate: (nullable id< ZendriveDebugDelegateProtocol>) delegate;Parameters
configurationThe configuration object which should have valid value of applicaitonKey and driverId.
delegateThe 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.
-
Check using a session identifier if the corresponding session was started for data upload.
Typically this method should be used to check the ownership of a session idenfier obtained in
application:handleEventsForBackgroundURLSession:completionHandler:method of UIApplicationDelegateDeclaration
Objective-C
+ (BOOL)isZendriveSessionIdentifier:(nonnull NSString *)identifier;Parameters
identifierThe identifier in
application:handleEventsForBackgroundURLSession:completionHandler: -
Tell the SDK that events for a NSUrlSession are waiting to be processed.
The call to
application:handleEventsForBackgroundURLSession:completionHandler:method ofUIApplicationDelegateshould be forwarded here if it is aZendrivesession identifier. This will ensure the correct handling of the relevant session creation and callbacks to the delegate.Declaration
Objective-C
+ (void)handleEventsForBackgroundURLSession:(nonnull NSString *)identifier completionHandler: (nonnull void (^)(void))completionHandler;Parameters
identifierThe identifier in
application:handleEventsForBackgroundURLSession:completionHandler:completionHandlerThe completionhandler in
application:handleEventsForBackgroundURLSession:completionHandler: -
Set delegate to receive callback in response to
+uploadAllZendriveDataWithZendriveConfiguration:delegate:request. SeeZendriveDebugDelegateProtocolfor further details.Declaration
Objective-C
+ (void)setDelegate:(nullable id<ZendriveDebugDelegateProtocol>)delegate;Parameters
delegateThe delegate object to give callbacks on.
ZendriveDebug Class Reference