ArrayLiteralListProvider
public struct ArrayLiteralListProvider<Element> : ModelListProvider where Element : Model
-
Declaration
Swift
public init(elements: [Element])
-
Declaration
Swift
public func getState() -> ModelListProviderState<Element>
-
Declaration
Swift
public func load() -> Result<[Element], CoreError>
-
Declaration
Swift
public func load(completion: @escaping (Result<[Element], CoreError>) -> Void)
-
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