ABSDKView
open class ABSDKView<Operation, Data> : UIView, ABSDKViewBinding
A base class for custom views that supports data binding
-
update view with data
Declaration
Swift
open func updateView(data: Data)
Parameters
data
the latest data to update the view with
-
configure the data source of the view
Declaration
Swift
public func configureDataSource(client: ABSDKClient, operation: Operation, dataSourceMapper: @escaping ObjectDataSourceMapper<Operation, Data>)
Parameters
client
An ABSDKClient for sending requests
operation
A GraphQL operation to get the object
dataSourceMapper
A callback to extract the concerned object from the operation result