Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
18
iphone/Maps/UI/Downloader/IDownloaderDataSource.swift
Normal file
18
iphone/Maps/UI/Downloader/IDownloaderDataSource.swift
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
protocol IDownloaderDataSource {
|
||||
var isEmpty: Bool { get }
|
||||
var title: String { get }
|
||||
var isRoot: Bool { get }
|
||||
var isSearching: Bool { get }
|
||||
func getParentCountryId() -> String
|
||||
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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue