JoinedDataProvider
public final class JoinedDataProvider<Element> : DataProvider
Takes multiple data provider and aggregates them into a single on.
-
Creates an instance of
JoinedDataProviderby aggregating all given data providersDeclaration
Swift
public init<D>(dataProviders: [D]) where Element == D.Element, D : DataProviderParameters
dataProvidersthe data providers to aggregate.
-
An observable where one can subscribe to changes of data provider.
Declaration
Swift
public var observable: DataProviderObservable { get } -
Returns an object for a given index path.
Declaration
Swift
public func object(at indexPath: IndexPath) -> ElementParameters
indexPaththe index path to get the object for.
Return Value
the object at the given index path.
-
Returns the number of items in a given section.
Declaration
Swift
public func numberOfItems(inSection section: Int) -> IntParameters
sectionthe section.
Return Value
number of items in the given section.
-
Declaration
Swift
public func numberOfSections() -> IntReturn Value
the number of sections.
View on GitHub
JoinedDataProvider Class Reference