MeteorCollection
public class MeteorCollection: NSObject, MeteorCollectionType
MeteorCollection is a class created to provide a base class and api for integrating SwiftDDP with persistence stores. MeteorCollection should generally be subclassed, with the methods documentWasAdded, documentWasChanged and documentWasRemoved facilitating communicating with the datastore.
-
Initializes a MeteorCollection object
Declaration
Swift
public init(name:String)
Parameters
name
The string name of the collection (must match the name of the collection on the server)
-
Called when a document has been sent from the server. Always executes on the main queue
Declaration
Swift
public func documentWasAdded(collection:String, id:String, fields:NSDictionary?)
Parameters
collection
the string name of the collection to which the document belongs
id
the string unique id that identifies the document on the server
fields
an optional NSDictionary with the documents properties
-
Undocumented
Declaration
Swift
public class MeteorCollection: NSObject, MeteorCollectionType
-
Undocumented
Declaration
Swift
public class MeteorCollection: NSObject, MeteorCollectionType