Main

Types not specific to a particular service.

  • A namespace for global stuff for the SDK.

    This enumeration does not contain any case, since it is only used as a namespace.

    See more

    Declaration

    Swift

    public enum Webcom
  • An object representing an application on the back-end.

    An iOS application will typically use the Webcom.defaultApplication instance.

    See more

    Declaration

    Swift

    public final class WebcomApplication : Hashable, CustomStringConvertible, CustomDebugStringConvertible
    extension WebcomApplication: WebcomCombinable
  • A value that represents how a subscription was cancelled.

    See more

    Declaration

    Swift

    @frozen
    public enum WebcomCancellation : Equatable, CustomStringConvertible
  • A type that is wrapped by another type in order to be enriched with a Combine-based API.

    See more

    Declaration

    Swift

    public protocol WebcomCombinable
  • A value that contains the configuration for a WebcomApplication.

    The Info.plist file may be used to provide WebcomConfiguration values. See the Getting a WebcomApplication guide for more information about that.

    See more

    Declaration

    Swift

    public struct WebcomConfiguration : Codable, Hashable, SelfIdentifiable, CustomStringConvertible, CustomDebugStringConvertible
  • A value representing a date and time, which can be computed by the Datasync back-end.

    A WebcomDate wraps a classic Date. The value property allows to retrieve the wrapped value. It has also a special instance, WebcomDate.backEndCurrentDate, which represents the back-end current date and time.

    To store the current date in the Datasync database, it is better to use WebcomDate.backEndCurrentDate rather than Date() since the former allows to take into account the offset between the device time and the back-end time seamlessly. To retrieve the device local date corresponding to a WebcomDate read in the Datasync database, use the DatasyncState.ConnectionState.deviceDate(for:) method, as it will also take the offset into account.

    WebcomDate obviously conforms to Codable, Hashable, Equatable and Comparable protocols, so it can be used everywhere Date would be used.

    See more

    Declaration

    Swift

    public struct WebcomDate : Codable, Hashable, Comparable
  • A value corresponding to an encryption algorithm used to cipher messages.

    See more

    Declaration

    Swift

    public enum WebcomEncryptionAlgorithm : CaseIterable, Codable, Equatable
  • A value representing an error.

    See more

    Declaration

    Swift

    public struct WebcomError : Error, Equatable, CustomStringConvertible, LocalizedError
  • A publisher that eventually produces a single value and then finishes or fails. In case of failure, the associated value is a WebcomError.

    Declaration

    Swift

    public typealias WebcomFuture<T> = Combine.Future<T, WebcomError>
  • A value representing the key of a database node.

    The order of the keys is defined as follows:

    • Keys that are parsable as integers are ordered before all other keys.
    • Integer keys (with no leading 0) are ordered following the natural order on integers.
    • Integer keys representing the same number are ordered from the one with the least leading 0 to the one with the most leading 0.
    • All other keys are ordered in lexicographic order.

    Example:

    0 < 1 < 01 < 001 < 7 < 09 < 72 < 521 < 1000 < aa < b < bb
    
    See more

    Declaration

    Swift

    public struct WebcomKey : Codable, Hashable, Comparable, ExpressibleByStringLiteral, CustomStringConvertible
  • A value representing a location in source code.

    See more

    Declaration

    Swift

    public struct WebcomLocation : CustomStringConvertible
  • A value that contains a log.

    Logs produced by the SDK use this type.

    See more

    Declaration

    Swift

    public struct WebcomLog : CustomStringConvertible, CustomDebugStringConvertible
  • A namespace for markers used by the SDK.

    This enumeration does not contain any case, since it is only used as a namespace.

    See more

    Declaration

    Swift

    public enum WebcomMarkers
  • A value representing a remote notification sent by the back-end.

    See more

    Declaration

    Swift

    public struct WebcomNotification : CustomDebugStringConvertible
  • A value representing an event sent with a remote notification.

    See more

    Declaration

    Swift

    public enum WebcomNotificationEvent : Equatable, CustomStringConvertible
  • The type of the value of nodes representing a presence state for the DatasyncService.isPresent(state:) method.

    Declaration

    Swift

    public typealias WebcomPresenceState = [String : Date]
  • A value that represents either a success or a failure, with an associated value in each case. In case of failure, the associated value is a WebcomError.

    Declaration

    Swift

    public typealias WebcomResult<T> = Result<T, WebcomError>
  • A service, i.e. a set of consistent features of a WebcomApplication instance.

    See more

    Declaration

    Swift

    public protocol WebcomService : AnyObject, CustomDebugStringConvertible, Equatable
  • A type to represent a JSON value.

    See more

    Declaration

    Swift

    public protocol WebcomValuable
  • A type that wraps a callback-based type in order to enrich it with another API.

    See more

    Declaration

    Swift

    public protocol WebcomWrapper