[ios] add methods to load the file by url to the BMManager

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-06-06 19:54:17 +04:00 committed by Alexander Borsuk
parent db0aeb4194
commit ba7d55aa97
2 changed files with 6 additions and 0 deletions

View file

@ -36,6 +36,7 @@ NS_SWIFT_NAME(BookmarksManager)
- (BOOL)areBookmarksLoaded;
- (void)loadBookmarks;
- (void)loadBookmarkFile:(NSURL *)url;
- (void)reloadCategoryAtFilePath:(NSString *)filePath;
- (void)deleteCategoryAtFilePath:(NSString *)filePath;

View file

@ -203,6 +203,11 @@ static KmlFileType convertFileTypeToCore(MWMKmlFileType fileType) {
self.bm.LoadBookmarks();
}
- (void)loadBookmarkFile:(NSURL *)url
{
self.bm.LoadBookmark(url.path.UTF8String, false /* isTemporaryFile */);
}
- (void)reloadCategoryAtFilePath:(NSString *)filePath
{
self.bm.ReloadBookmark(filePath.UTF8String);