AbstractCollection

Undocumented

  • Undocumented

  • Undocumented

  • Undocumented

  • Invoked when a document has been sent from the server.

    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

  • Invoked when a document has been changed on the server.

    Declaration

    Swift

    public func documentWasChanged(collection:String, id:String, fields:NSDictionary?, cleared:[String]?) {}

    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

    cleared

    Optional array of strings (field names to delete)

  • Invoked when a document has been removed on the server.

    Declaration

    Swift

    public func documentWasRemoved(collection:String, id:String) {}

    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