Classes

The following classes are available globally.

Payload Class

  • This is a special class for representing the payload as an atomic object. It encapsulates the type and the payload, as a Data object.

    Expressing it as a class gives us a couple of things: 1) It allows us to keep it as a reference, as opposed to a copy, and 2) It allows us to easily extend the class with data interpretation.

    See more

    Declaration

    Swift

    public class RVP_Cocoa_SDK_Payload

Main Class

Main Library Interface Class

  • This class represents the public interface to the White Dragon Great Rift Valley Platform BAOBAB Server iOS SDK framework.

    The SDK is a Swift-only shared framework for use by Swift applications, targeting iOS 11 or above.

    This system works by caching retrieved objects in the main SDK instance, and referencing them. This is different from the PHP SDK, where each object is an independent instance and state. Swift likes objects to be referenced, as opposed to copied, so we honor that. Since the SDK is really an ORM, this makes sense.

    This class follows the Sequence protocol, so its cached instances can be iterated and subscripted. These instances are kept sorted by ID and database.

    The SDK opens a session to the server upon instantiation, and maintains that throughout its lifecycle. This happens whether or not a login is done.

    It can also have an open session passed in at instantiation, and it will use that session.

    See more

    Declaration

    Swift

    public class RVP_Cocoa_SDK : NSObject
    extension RVP_Cocoa_SDK: URLSessionDelegate
    extension RVP_Cocoa_SDK: Sequence

Main Class