NSDK_Observer
@protocol NSDK_Observer <NSObject>
Observer protocol for Route calculation and Traffic fetch requests
-
progress occured on current request
Declaration
Objective-C
- (void)onProgress:(int)current total:(int)total jobid:(int)job;
Swift
optional func onProgress(_ current: Int32, total: Int32, jobid job: Int32)
Parameters
current
the current progress. the percentage of the progress can be calculated by current/total * 100
total
the max value for the progress (usually ‘100’)
job
the jobid for the request
-
the request is finished
Declaration
Objective-C
- (void)onFinished:(NSError *)error jobid:(int)job;
Swift
optional func onFinished(_ error: Error!, jobid job: Int32)
Parameters
error
nil if no error occured
job
the jobid for the request