AnyModelListProvider
public struct AnyModelListProvider<Element> : ModelListProvider where Element : Model
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used
directly by host applications. The behavior of this may change without warning. Though it is not used by host
application making any change to these public
types should be backward compatible, otherwise it will be a breaking
change.
-
Declaration
Swift
public init<Provider: ModelListProvider>( provider: Provider ) where Provider.Element == Self.Element
-
Declaration
Swift
public func getState() -> ModelListProviderState<Element>
-
load()
AsynchronousDeclaration
Swift
public func load() async throws -> [Element]
-
Declaration
Swift
public func hasNextPage() -> Bool
-
getNextPage()
AsynchronousDeclaration
Swift
public func getNextPage() async throws -> List<Element>
-
Declaration
Swift
public func encode(to encoder: Encoder) throws