Main
Types not specific to a particular service.
-
A namespace for global stuff for the SDK.
This enumeration does not contain any
See morecase
, since it is only used as a namespace.Declaration
Swift
public enum Webcom
-
An object representing an application on the back-end.
An iOS application will typically use the
See moreWebcom.defaultApplication
instance.Declaration
Swift
public final class WebcomApplication : Hashable, CustomStringConvertible, CustomDebugStringConvertible
extension WebcomApplication: WebcomCombinable
-
A value that represents how a subscription was cancelled.
See moreDeclaration
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 moreDeclaration
Swift
public protocol WebcomCombinable
-
A value that contains the configuration for a
WebcomApplication
.The
See moreInfo.plist
file may be used to provideWebcomConfiguration
values. See the Getting a WebcomApplication guide for more information about that.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 classicDate
. Thevalue
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 thanDate()
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 aWebcomDate
read in the Datasync database, use theDatasyncState.ConnectionState.deviceDate(for:)
method, as it will also take the offset into account.
See moreWebcomDate
obviously conforms toCodable
,Hashable
,Equatable
andComparable
protocols, so it can be used everywhereDate
would be used.Declaration
Swift
public struct WebcomDate : Codable, Hashable, Comparable
-
A value corresponding to an encryption algorithm used to cipher messages.
See moreDeclaration
Swift
public enum WebcomEncryptionAlgorithm : CaseIterable, Codable, Equatable
-
A value representing an error.
See moreDeclaration
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:
See more0 < 1 < 01 < 001 < 7 < 09 < 72 < 521 < 1000 < aa < b < bb
Declaration
Swift
public struct WebcomKey : Codable, Hashable, Comparable, ExpressibleByStringLiteral, CustomStringConvertible
-
A value representing a location in source code.
See moreDeclaration
Swift
public struct WebcomLocation : CustomStringConvertible
-
Declaration
Swift
public struct WebcomLog : CustomStringConvertible, CustomDebugStringConvertible
-
A namespace for markers used by the SDK.
This enumeration does not contain any
See morecase
, since it is only used as a namespace.Declaration
Swift
public enum WebcomMarkers
-
A value representing a remote notification sent by the back-end.
See moreDeclaration
Swift
public struct WebcomNotification : CustomDebugStringConvertible
-
A value representing an event sent with a remote notification.
See moreDeclaration
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
See moreWebcomApplication
instance.Declaration
Swift
public protocol WebcomService : AnyObject, CustomDebugStringConvertible, Equatable
-
A type to represent a JSON value.
See moreDeclaration
Swift
public protocol WebcomValuable
-
A type that wraps a callback-based type in order to enrich it with another API.
See moreDeclaration
Swift
public protocol WebcomWrapper