Proxy
A base IProxy implementation.
In PureMVC, Proxy classes are used to manage parts of the
application’s data model.
A Proxy might simply manage a reference to a local data object,
in which case interacting with it might involve setting and
getting of its data in synchronous fashion.
Proxy classes are also used to encapsulate the application’s
interaction with remote services to save or retrieve data, in which case,
we adopt an asyncronous idiom; setting data (or calling a method) on the
Proxy and listening for a Notification to be sent
when the Proxy has retrieved the data from the service.
@see org.puremvc.swift.multicore.core.Model Model
-
Default proxy name
Declaration
Swift
open class var NAME: String { get } -
the proxy name
Declaration
Swift
public private(set) var name: String { get } -
the data object
Declaration
Swift
public var data: Any? -
Constructor
Declaration
Swift
public init(name: String? = nil, data: Any? = nil) -
Called by the Model when the Proxy is registered
Declaration
Swift
open func onRegister() -
Called by the Model when the Proxy is removed
Declaration
Swift
open func onRemove()
Proxy Class Reference