YMKOfflineCacheRegion

@interface YMKOfflineCacheRegion : NSObject

Note

This feature is not available in the free MapKit version.

Summary

Class methods

+ (nonnull YMKOfflineCacheRegion *)regionWithId:( NSUInteger)id
                                           name:(nonnull NSString *)name
                                        country:(nonnull NSString *)country
                                         center:(nonnull YMKPoint *)center
                                           size:(nonnull YMKLocalizedValue *)size
                                    releaseTime:(nonnull NSDate *)releaseTime
                                       parentId:(nullable NSNumber *)parentId;

Properties

@property (nonatomic, readonly) NSUInteger id;
Region ID

@property (nonatomic, readonly, nonnull) NSString *name;
Name of the region

@property (nonatomic, readonly, nonnull) NSString *country;
Country of the region

@property (nonatomic, readonly, nonnull) YMKPoint *center;
Center point

@property (nonatomic, readonly, nonnull) YMKLocalizedValue *size;
Region size

@property (nonatomic, readonly, nonnull) NSDate *releaseTime;
Returns the region creation time

@property (nonatomic, readonly, nullable) NSNumber *parentId;
Region id of the parent region

Class methods

regionWithId:name:country:center:size:releaseTime:parentId:

+ (nonnull YMKOfflineCacheRegion *)regionWithId:( NSUInteger)id
                                           name:(nonnull NSString *)name
                                        country:(nonnull NSString *)country
                                         center:(nonnull YMKPoint *)center
                                           size:(nonnull YMKLocalizedValue *)size
                                    releaseTime:(nonnull NSDate *)releaseTime
                                       parentId:(nullable NSNumber *)parentId;


Properties

id

@property (nonatomic, readonly) NSUInteger id;

Region ID.


name

@property (nonatomic, readonly, nonnull) NSString *name;

Name of the region.


country

@property (nonatomic, readonly, nonnull) NSString *country;

Country of the region.


center

@property (nonatomic, readonly, nonnull) YMKPoint *center;

Center point.


size

@property (nonatomic, readonly, nonnull) YMKLocalizedValue *size;

Region size


releaseTime

@property (nonatomic, readonly, nonnull) NSDate *releaseTime;

Returns the region creation time.


parentId

@property (nonatomic, readonly, nullable) NSNumber *parentId;

Region id of the parent region.

Optional field, can be nil.