Classes

The following classes are available globally.

  • An instance of WCAuthInfo is returned after a successful Webcom authentication and contains information about it.

    See more

    Declaration

    Objective-C

    @interface WCAuthInfo : NSObject
  • A WCDataSnapshot is used to read data from a specific Webcom location.

    Callbacks passed to onEventType(_:withCallback:) and onceEventType(_:withCallback:) methods from WCQuery are called with an instance of WCDataSnapshot as the first parameter.

    To get the data, use the value property.

    To update the data, use the set(_:), update(_:), push(_:) or remove(_:) methods from WCWebcom.

    Instances of WCDataSnapshot are immutables.

    See more

    Declaration

    Objective-C

    @interface WCDataSnapshot : NSObject
  • An instance of WCOAuth2UserInfoFromProvider is returned after a successful OAuth2 authentication with a provider.

    See more

    Declaration

    Objective-C

    @interface WCOAuth2UserInfoFromProvider : NSObject
  • An instance of WCOnDisconnect is useful to write and remove data if the user lost connection with the server. This can happen if there is a connection problem or if the app crashes.

    Registered actions are executed only once. Register your actions again if you need to.

    Managing presence is a common use case. You can prevent other friends if you are connected or not.

    Set actions as soon as possible to catch early connection problems.

    See more

    Declaration

    Objective-C

    @interface WCOnDisconnect : NSObject
  • A WCQuery object sorts and filters data at a Webcom location.

    Can order and restrict data to a smallest subset.

    Queries can be chained easily with filter functions. They return WCQuery objects.

    See more

    Declaration

    Objective-C

    @interface WCQuery : NSObject
  • A WCWebcom instance represents a particular location in your namespace and can be used for reading or writing data to that location.

    Reading data can be done with on(_:) and once(_:) methods and writing data can be done with set(_:), push(_:), update(_:) and remove(_:) methods

    A WCWebcom instance is useful to read and write data at a defined location, specified by a URL parameter. You can also use specific methods and properties (for instance child(_:), parent, or root) to navigate into data structure.

    See more

    Declaration

    Objective-C

    @interface WCWebcom : WCQuery