[ios] add emptyInfo to the TrackRecordingInfo

`emptyInfo` is used as an initial (zero) state during the recoding process starting to notify the info observers
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-12-18 13:20:18 +04:00 committed by Roman Tsisyk
parent 66020b0db9
commit e5395e6f16
2 changed files with 6 additions and 0 deletions

View file

@ -11,6 +11,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readonly) NSString * maxElevation;
@property (nonatomic, readonly) NSString * minElevation;
+ (TrackRecordingInfo *)emptyInfo;
@end
NS_ASSUME_NONNULL_END

View file

@ -5,6 +5,10 @@
@implementation TrackRecordingInfo
+ (TrackRecordingInfo *)emptyInfo {
return [[TrackRecordingInfo alloc] initWithGpsTrackInfo:GpsTrackInfo()];
}
@end
@implementation TrackRecordingInfo (Core)