/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
iphone/Maps/UI/Downloader/IDownloaderDataSource.swift
17 строк
684 B
Aleksey Belouosv
[iOS] [refactoring] refactor map downloader screen
20 дек 2019, 16:01
20 дек 2019, 16:01
adaae55
Код
Авторство
О чём код?
protocol IDownloaderDataSource { var isEmpty: Bool { get } var title: String { get } var isRoot: Bool { get } var isSearching: Bool { get } func parentAttributes() -> MapNodeAttributes func numberOfSections() -> Int func numberOfItems(in section: Int) -> Int func item(at indexPath: IndexPath) -> MapNodeAttributes func matchedName(at indexPath: IndexPath) -> String? func title(for section: Int) -> String func indexTitles() -> [String]? func dataSourceFor(_ childId: String) -> IDownloaderDataSource func reload(_ completion: () -> Void) func search(_ query: String, locale: String, update: @escaping (_ completed: Bool) -> Void) func cancelSearch() }