15#import <Foundation/Foundation.h>
19NS_ASSUME_NONNULL_BEGIN
35- (instancetype)initWithDelegate:(nullable
id)delegate;
45- (void)setDownloadList:(nullable NSArray *)list;
70+ (int)getMarkerIndex:(nullable NSString *)markerID;
78+ (nullable NSMutableArray<NSDictionary<NSString *, NSString *> *> *)
getMarkerList;
86+ (void)setMarkerList:(nullable NSArray<NSDictionary<NSString *, NSString *> *> *)list;
103+ (nullable NSDictionary<NSString *, NSString *> *)getMarkerInfo:(
int)index;
114+ (void)setMarkerInfo:(nullable NSDictionary<NSString *, NSString *> *)info;
123+ (BOOL)checkMarkerBannerData:(nullable NSString *)name;
132+ (BOOL)checkMarkerData:(nullable NSString *)name;
140+ (void)setIgnoreSave:(nullable NSURL *)url;
152+ (void)pullOutMarkerBanner:(nullable NSString *)path bannerID:(nullable NSString *)bannerID;
161+ (void)saveMarker:(nullable NSData *)data markerID:(nullable NSString *)markerID;
170+ (void)copyMarkerItem:(nullable NSString *)name isBanner:(BOOL)isBanner;
178+ (void)copyMarker:(nullable NSString *)name;
186+ (void)copyMarkerBanner:(nullable NSString *)name;
195+ (void)markerMove:(nullable NSString *)markerID bannerID:(nullable NSString *)bannerID;
212+ (nullable NSString *)getMarkerPath:(nullable NSString *)name;
221+ (nullable NSString *)getMarkerBannerPath:(nullable NSString *)name;
Owns the marker assets and their on-disc layout.
Definition MarkerManager.h:25
nullable NSMutableArray< NSDictionary< NSString *, NSString * > * > * getCurrentMarkerList()
The installed markers, excluding those whose version is still 0.0.0.
Definition MarkerManager.m:137
nullable NSString * getMarkerDirectoryPath()
The installed marker directory, creating it (and the private documents parent) as needed.
Definition MarkerManager.m:278
int getReservedMarkerSize()
The reserved marker index boundary.
Definition MarkerManager.m:80
int getDefaultMarkerSize()
The number of markers in the default list.
Definition MarkerManager.m:85
BOOL checkRegularMarkerData()
Validates the installed marker list, rebuilding it from defaults when it is missing.
Definition MarkerManager.m:377
BOOL enableMarkerSelect()
Whether marker selection may be enabled.
Definition MarkerManager.m:451
nullable NSMutableArray< NSDictionary< NSString *, NSString * > * > * getMarkerList()
The full persisted marker list, deciphered and unarchived.
Definition MarkerManager.m:105
BOOL moveMarkerDataInDoc()
Copies the built-in current marker into the Documents marker directory.
Definition MarkerManager.m:489
BOOL convertMarkerList()
Migrates a legacy marker-version list into the current list format.
Definition MarkerManager.m:342
BOOL createDefaultMarkerList()
Builds and persists the built-in default marker list.
Definition MarkerManager.m:321