ABSDKTableViewController
open class ABSDKTableViewController<Query, Data, Cell> : UIViewController, UITableViewDataSource, UITableViewDelegate where Query : GraphQLPagedQuery, Cell : ABSDKTableViewCell<Data>, Cell : CellWithNib
A base class for custom TableViewController that supports data binding and pagination
-
The ABSDKClient for sending requests
Declaration
Swift
public var client: ABSDKClient?
-
The GraphQL query to get the array
Declaration
Swift
public var query: Query?
-
The callback to extract the concerned array from the query result
Declaration
Swift
public var dataSourceMapper: ArrayDataSourceMapper<Query, Data>?
-
The callback to extract page info from the query result
Declaration
Swift
public var pageMapper: PageMapper<Query>?
-
The dataSource the performs data binding
Declaration
Swift
public private(set) var dataSource: ABSDKPagedArrayDataSource<Query, Data>?
-
Override to perform custom setup
Declaration
Swift
override open func viewDidLoad()
-
Override to configure the data source
Declaration
Swift
open func configDataSource()
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Undocumented
Declaration
Swift
open func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
public func scrollViewDidScroll(_ scrollView: UIScrollView)