Driver's behavior log provides access to all recorded trips and global driver's score. More...
#import <SYDriversBehaviorLog.h>
Instance Methods | |
(nonnull SYDriversBehaviorTrip *) | - tripAtIndex: |
Returns trip at given index. If index is out of range or trip has corrupted data, returns nil. More... | |
(void) | - removeTripWithId: |
Removes trip with given ID from local offline log and from global score. More... | |
(void) | - removeTrip: |
Removes the trip from local offline log and from global score. More... | |
(void) | - startTrip:time: |
Starts trip at given position and time. More... | |
(void) | - endTrip:time: |
Ends current trip at given position and time. More... | |
(void) | - startOnlineSyncWithUserId: |
(void) | - stopOnlineSync |
Properties | |
id< SYDriversBehaviorLogDelegate > | delegate |
SYDriversLogSettings * | settings |
Settings for logger. More... | |
SYDriversBehaviorTrip * | currentTrip |
Represents current trip. If it's nil there is no current trip and log is not recording. More... | |
NSUInteger | tripsCount |
Number of trips in log. More... | |
SYDriversBehaviorScore * | score |
Represents driver's current global cummulative score based on score of each trip. More... | |
Driver's behavior log provides access to all recorded trips and global driver's score.
- (void) endTrip: | (nonnull SYPosition *) | position | |
time: | (nonnull NSDate *) | time | |
Ends current trip at given position and time.
- (void) removeTrip: | (nonnull SYDriversBehaviorTrip *) | trip |
Removes the trip from local offline log and from global score.
- (void) removeTripWithId: | (nonnull NSString *) | tripId |
Removes trip with given ID from local offline log and from global score.
- (void) startOnlineSyncWithUserId: | (nonnull NSString *) | userId |
- (void) startTrip: | (nonnull SYPosition *) | position | |
time: | (nonnull NSDate *) | time | |
Starts trip at given position and time.
- (void) stopOnlineSync |
- (nonnull SYDriversBehaviorTrip*) tripAtIndex: | (NSUInteger) | index |
Returns trip at given index. If index is out of range or trip has corrupted data, returns nil.
|
readnonatomicassign |
Represents current trip. If it's nil there is no current trip and log is not recording.
|
readwritenonatomicweak |
|
readnonatomicassign |
Represents driver's current global cummulative score based on score of each trip.
|
readnonatomicassign |
Settings for logger.
|
readnonatomicassign |
Number of trips in log.