MMKOfflineCacheRegion

@interface MMKOfflineCacheRegion : NSObject

Note

This feature is not available in the free MapKit version.

Summary

Class methods

+ (nonnull MMKOfflineCacheRegion *)regionWithId:( NSUInteger)id
                                           name:(nonnull NSString *)name
                                        country:(nonnull NSString *)country
                                         center:(nonnull MMKPoint *)center
                                           size:(nonnull MMKLocalizedValue *)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) MMKPoint *center;
Center point

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *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 MMKOfflineCacheRegion *)regionWithId:( NSUInteger)id
                                           name:(nonnull NSString *)name
                                        country:(nonnull NSString *)country
                                         center:(nonnull MMKPoint *)center
                                           size:(nonnull MMKLocalizedValue *)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) MMKPoint *center;

Center point.


size

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *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.