CloudViewModel
open class CloudViewModel<T> : CloudObservable where T : ParseCloud
A default implementation of the CloudCodeObservable
protocol. Suitable for ObjectObserved
and can be used as a SwiftUI view model. Also can be used as a Combine publisher. See Apple’s
documentation
for more details.
-
Declaration
Swift
public typealias CloudCodeType = T
-
Updates and notifies when the new results have been retrieved.
Declaration
Swift
open var results: T.ReturnType? { get set }
-
Updates and notifies when there is an error retrieving the results.
Declaration
Swift
open var error: ParseError? { get set }
-
Declaration
Swift
required public init(cloudCode: T)
-
Declaration
Swift
public func runFunction(options: API.Options = [])
-
Declaration
Swift
public func startJob(options: API.Options = [])