Classes
The following classes are available globally.
-
Undocumented
See moreDeclaration
Objective-C
@interface ARTAnnotation : NSObject<NSCopying> /// A Unique ID assigned by Ably to this message. @property (nullable, readonly, nonatomic) NSString *id; /// The action, whether this is an annotation being added or removed, one of the `ARTAnnotationAction` enum values. @property (readonly, nonatomic) ARTAnnotationAction action; /// The client ID of the publisher of this message. @property (nonatomic, readonly, nullable) NSString *clientId; /// The name of this annotation. This is the field that most annotation aggregations will operate on. For example, using "distinct.v1" aggregation (specified in the type), the message summary will show a list of clients who have published an annotation with each distinct annotation.name. @property (nullable, readonly, nonatomic) NSString *name; /// An optional count, only relevant to certain aggregation methods, see aggregation methods documentation for more info. @property (nullable, readonly, nonatomic) NSNumber *count; /// The message payload, if provided. @property (nonatomic, readonly, nullable) id data; /// This is typically empty, as all messages received from Ably are automatically decoded client-side using this value. However, if the message encoding cannot be processed, this attribute contains the remaining transformations not applied to the `data` payload. @property (nonatomic, readonly, nullable) NSString *encoding; /// Timestamp of when the message was received by Ably, as a `NSDate` object. @property (nullable, nonatomic, readonly) NSDate *timestamp; /// This annotation's unique serial (lexicographically totally ordered). @property (readonly, nonatomic) NSString *serial; /// The serial of the message (of type `MESSAGE_CREATE`) that this annotation is annotating. @property (readonly, nonatomic) NSString *messageSerial; /// The type of annotation it is, typically some identifier together with an aggregation method; for example: "emoji:distinct.v1". Handled opaquely by the SDK and validated serverside. @property (readonly, nonatomic) NSString *type; /// A JSON object of arbitrary key-value pairs that may contain metadata, and/or ancillary payloads. @property (nullable, readonly, nonatomic) id<ARTJsonCompatible> extras; - (instancetype)initWithId:(nullable NSString *)annotationId action:(ARTAnnotationAction)action clientId:(nullable NSString *)clientId name:(nullable NSString *)name count:(nullable NSNumber *)count data:(nullable id)data encoding:(nullable NSString *)encoding timestamp:(nullable NSDate *)timestamp serial:(nullable NSString *)serial messageSerial:(NSString *)messageSerial type:(NSString *)type extras:(nullable id<ARTJsonCompatible>)extras; @endSwift
class ARTAnnotation : NSObject, NSCopying, @unchecked Sendable -
Creates Ably
ARTTokenRequestobjects and obtains Ably Tokens from Ably to subsequently issue to less trusted clients.See
SeeARTAuthProtocolfor details.Declaration
Objective-C
@interface ARTAuth : NSObject <ARTAuthProtocol>Swift
class ARTAuth : NSObject, ARTAuthProtocol, @unchecked Sendable -
Contains the token string used to authenticate a client with Ably.
See moreDeclaration
Objective-C
@interface ARTAuthDetails : NSObject <NSCopying>Swift
class ARTAuthDetails : NSObject, NSCopying -
Passes authentication-specific properties in authentication requests to Ably. Properties set using
See moreARTAuthOptionsare used instead of the default values set when the client library is instantiated, as opposed to being merged with them.Declaration
Objective-C
@interface ARTAuthOptions : NSObject <NSCopying>Swift
class ARTAuthOptions : NSObject, NSCopying -
A base interface for an
See moreARTMessageand anARTPresenceMessageobjects.Declaration
Objective-C
@interface ARTBaseMessage : NSObject <NSCopying>Swift
class ARTBaseMessage : NSObject, NSCopying -
Passes additional properties to an
See moreARTRestChannelobject, such as encryption.Declaration
Objective-C
@interface ARTChannelOptions : NSObject <NSCopying>Swift
class ARTChannelOptions : NSObject, NSCopying -
Creates and destroys
See moreARTRestChannelandARTRealtimeChannelobjects.Declaration
Objective-C
@interface ARTChannels<ChannelType> : NSObjectSwift
class ARTChannels<ChannelType> : NSObject, @unchecked Sendable where ChannelType : AnyObject -
Provides information about the Ably client library and the environment in which it’s running.
See moreDeclaration
Objective-C
@interface ARTClientInformation : NSObjectSwift
class ARTClientInformation : NSObject -
Passes additional client-specific properties to the REST
See more-[ARTRestProtocol initWithOptions:]or the Realtime-[ARTRealtimeProtocol initWithOptions:].Declaration
Objective-C
@interface ARTClientOptions : ARTAuthOptionsSwift
class ARTClientOptions : ARTAuthOptions -
Enables the management of a connection to Ably.
See
SeeARTConnectionProtocolfor details.Declaration
Objective-C
@interface ARTConnection : NSObject <ARTConnectionProtocol>Swift
class ARTConnection : NSObject, ARTConnectionProtocol, @unchecked Sendable -
Sets the properties to configure encryption for an
See moreARTRestChannelorARTRealtimeChannelobject.Declaration
Objective-C
@interface ARTCipherParams : NSObject <ARTCipherParamsCompatible>Swift
class ARTCipherParams : NSObject, ARTCipherParamsCompatible -
Contains the properties required to configure the encryption of
See moreARTMessagepayloads.Declaration
Objective-C
@interface ARTCrypto : NSObjectSwift
class ARTCrypto : NSObject -
This object is used for providing parameters into methods with paginated results.
See moreDeclaration
Objective-C
@interface ARTDataQuery : NSObjectSwift
class ARTDataQuery : NSObject -
This object is used for providing parameters into
See moreARTRealtimePresence‘s methods with paginated results.Declaration
Objective-C
@interface ARTRealtimeHistoryQuery : ARTDataQuerySwift
class ARTRealtimeHistoryQuery : ARTDataQuery -
Represents default library settings.
See moreDeclaration
Objective-C
@interface ARTDefault : NSObjectSwift
class ARTDefault : NSObject -
Contains the properties of a device registered for push notifications.
See moreDeclaration
Objective-C
@interface ARTDeviceDetails : NSObjectSwift
class ARTDeviceDetails : NSObject, @unchecked Sendable -
An object representing a unique device identity token used to communicate with APNS.
See moreDeclaration
Objective-C
@interface ARTDeviceIdentityTokenDetails : NSObject <NSSecureCoding>Swift
class ARTDeviceIdentityTokenDetails : NSObject, NSSecureCoding -
Contains the details of the push registration of a device.
See moreDeclaration
Objective-C
@interface ARTDevicePushDetails : NSObjectSwift
class ARTDevicePushDetails : NSObject, @unchecked Sendable -
An object representing a listener returned by
ARTEventEmittermethods.Declaration
Objective-C
@interface ARTEventListener : NSObjectSwift
class ARTEventListener : NSObject, @unchecked Sendable -
A generic interface for event registration and delivery used in a number of the types in the Realtime client library. For example, the
See moreARTConnectionandARTRealtimeChannelobjects emit events for their state using theARTEventEmitterpattern.Declaration
Objective-C
@interface ARTEventEmitter<EventType : id <ARTEventIdentification>, ItemType> : NSObjectSwift
class ARTEventEmitter<EventType, ItemType> : NSObject, @unchecked Sendable where EventType : ARTEventIdentification, ItemType : AnyObject -
A superset of
See moreARTPaginatedResultwhich represents a page of results plus metadata indicating the relative queries available to it.ARTHttpPaginatedResponseadditionally carries information about the response to an HTTP request.Declaration
Objective-C
@interface ARTHTTPPaginatedResponse : ARTPaginatedResult <NSDictionary *>Swift
class ARTHTTPPaginatedResponse : ARTPaginatedResult<NSDictionary>, @unchecked Sendable -
Contains the device identity token and secret of a device.
See moreARTLocalDeviceextendsARTDeviceDetails.Declaration
Objective-C
@interface ARTLocalDevice : ARTDeviceDetailsSwift
class ARTLocalDevice : ARTDeviceDetails, @unchecked Sendable -
Contains an individual message that is sent to, or received from, Ably.
See moreDeclaration
Objective-C
@interface ARTMessage : ARTBaseMessageSwift
class ARTMessage : ARTBaseMessage -
Contains annotations summary for a message. The keys of the dict are annotation types, and the values are aggregated summaries for that annotation type.
See moreDeclaration
Objective-C
@interface ARTMessageAnnotations : NSObjectSwift
class ARTMessageAnnotations : NSObject -
Contains metadata about a message update or delete operation.
See moreDeclaration
Objective-C
@interface ARTMessageOperation : NSObjectSwift
class ARTMessageOperation : NSObject, @unchecked Sendable -
Contains version information for a message, including operation metadata.
See moreDeclaration
Objective-C
@interface ARTMessageVersion : NSObjectSwift
class ARTMessageVersion : NSObject -
Represents an outbound annotation to be published or deleted.
This type is based on
See moreARTAnnotationbut omits the properties that are populated by the Realtime service.Declaration
Objective-C
@interface ARTOutboundAnnotation : NSObject <NSCopying>Swift
class ARTOutboundAnnotation : NSObject, NSCopying, @unchecked Sendable -
Contains a page of results for message or presence history, stats, or REST presence requests. An
See moreARTPaginatedResultresponse from a REST API paginated query is also accompanied by metadata that indicates the relative queries available to theARTPaginatedResultobject.Declaration
Objective-C
@interface ARTPaginatedResult<ItemType> : NSObjectSwift
class ARTPaginatedResult<ItemType> : NSObject, @unchecked Sendable where ItemType : AnyObject -
Contains an individual presence update sent to, or received from, Ably.
See moreDeclaration
Objective-C
@interface ARTPresenceMessage : ARTBaseMessageSwift
class ARTPresenceMessage : ARTBaseMessage -
Contains the result of a publish operation.
See moreDeclaration
Objective-C
@interface ARTPublishResult : NSObjectSwift
class ARTPublishResult : NSObject, @unchecked Sendable -
Represents the message serial of a message published to Ably, as contained in an
See moreARTPublishResult.Declaration
Objective-C
@interface ARTPublishResultSerial : NSObjectSwift
class ARTPublishResultSerial : NSObject, @unchecked Sendable -
Enables a device to be registered and deregistered from receiving push notifications.
See moreDeclaration
Objective-C
@interface ARTPush : NSObject <ARTPushProtocol>Swift
class ARTPush : NSObject, ARTPushProtocol, @unchecked Sendable -
Enables the management of device registrations and push notification subscriptions. Also enables the publishing of push notifications to devices.
See moreDeclaration
Objective-C
@interface ARTPushAdmin : NSObject <ARTPushAdminProtocol>Swift
class ARTPushAdmin : NSObject, ARTPushAdminProtocol, @unchecked Sendable -
Enables devices to subscribe to push notifications for a channel.
See
SeeARTPushChannelProtocolfor details.Declaration
Objective-C
@interface ARTPushChannel : NSObject <ARTPushChannelProtocol>Swift
class ARTPushChannel : NSObject, ARTPushChannelProtocol, @unchecked Sendable -
Contains the subscriptions of a device, or a group of devices sharing the same
See moreclientId, has to a channel in order to receive push notifications.Declaration
Objective-C
@interface ARTPushChannelSubscription : NSObjectSwift
class ARTPushChannelSubscription : NSObject -
Enables device push channel subscriptions.
See
SeeARTPushChannelSubscriptionsProtocolfor details.Declaration
Objective-C
@interface ARTPushChannelSubscriptions : NSObject <ARTPushChannelSubscriptionsProtocol>Swift
class ARTPushChannelSubscriptions : NSObject, ARTPushChannelSubscriptionsProtocol, @unchecked Sendable -
Enables the management of push notification registrations with Ably.
See
SeeARTPushDeviceRegistrationsProtocolfor details.Declaration
Objective-C
@interface ARTPushDeviceRegistrations : NSObject <ARTPushDeviceRegistrationsProtocol>Swift
class ARTPushDeviceRegistrations : NSObject, ARTPushDeviceRegistrationsProtocol, @unchecked Sendable -
A client that extends the functionality of the
See moreARTRestand provides additional realtime-specific features.Declaration
Objective-C
@interface ARTRealtime : NSObject <ARTRealtimeProtocol>Swift
class ARTRealtime : NSObject, ARTRealtimeProtocol, @unchecked Sendable -
See
SeeARTRealtimeAnnotationsProtocolfor details.Declaration
Objective-C
@interface ARTRealtimeAnnotations : NSObject <ARTRealtimeAnnotationsProtocol>Swift
class ARTRealtimeAnnotations : NSObject, ARTRealtimeAnnotationsProtocol, @unchecked Sendable -
Describes the properties of the channel state.
See moreDeclaration
Objective-C
@interface ARTChannelProperties : NSObjectSwift
class ARTChannelProperties : NSObject -
Enables messages to be published and subscribed to. Also enables historic messages to be retrieved and provides access to the
See moreARTRealtimePresenceobject of a channel. Also implementsARTEventEmitterinterface and emitsARTChannelEventevents, where aARTChannelEventis either aARTRealtimeChannelStateor anARTChannelEvent.ARTChannelEventUpdate.Declaration
Objective-C
@interface ARTRealtimeChannel : NSObject <ARTRealtimeChannelProtocol>Swift
class ARTRealtimeChannel : NSObject, ARTRealtimeChannelProtocol, @unchecked Sendable -
Passes additional properties to an
See moreARTRealtimeChannelobject, such as encryption, anARTChannelModeand channel parameters.Declaration
Objective-C
@interface ARTRealtimeChannelOptions : ARTChannelOptionsSwift
class ARTRealtimeChannelOptions : ARTChannelOptions -
This object is used for providing parameters into
See moreARTRealtimePresence‘s methods with paginated results.Declaration
Objective-C
@interface ARTRealtimePresenceQuery : ARTPresenceQuerySwift
class ARTRealtimePresenceQuery : ARTPresenceQuery -
Enables the presence set to be entered and subscribed to, and the historic presence set to be retrieved for a channel.
See
SeeARTRealtimePresenceProtocolfor details.Declaration
Objective-C
@interface ARTRealtimePresence : ARTPresence <ARTRealtimePresenceProtocol>Swift
class ARTRealtimePresence : ARTPresence, ARTRealtimePresenceProtocol, @unchecked Sendable -
A client that offers a simple stateless API to interact directly with Ably’s REST API.
See moreDeclaration
Objective-C
@interface ARTRest : NSObject <ARTRestProtocol>Swift
class ARTRest : NSObject, ARTRestProtocol, @unchecked Sendable -
This object is used for providing parameters into
See moreARTRestAnnotations‘s methods with paginated results.Declaration
Objective-C
@interface ARTAnnotationsQuery : NSObjectSwift
class ARTAnnotationsQuery : NSObject, @unchecked Sendable -
Functionality for annotating messages with small pieces of data, such as emoji reactions, that the server will roll up into the message as a summary.
See
SeeARTRestAnnotationsProtocolfor details.Declaration
Objective-C
@interface ARTRestAnnotations : NSObject <ARTRestAnnotationsProtocol>Swift
class ARTRestAnnotations : NSObject, ARTRestAnnotationsProtocol, @unchecked Sendable -
Enables messages to be published and historic messages to be retrieved for a channel.
See moreDeclaration
Objective-C
@interface ARTRestChannel : NSObject <ARTRestChannelProtocol>Swift
class ARTRestChannel : NSObject, ARTRestChannelProtocol, @unchecked Sendable -
This object is used for providing parameters into
See moreARTRestPresence‘s methods with paginated results.Declaration
Objective-C
@interface ARTPresenceQuery : NSObjectSwift
class ARTPresenceQuery : NSObject -
Enables the retrieval of the current and historic presence set for a channel.
See
SeeARTRestPresenceProtocolfor details.Declaration
Objective-C
@interface ARTRestPresence : ARTPresence <ARTRestPresenceProtocol>Swift
class ARTRestPresence : ARTPresence, ARTRestPresenceProtocol, @unchecked Sendable -
This object is used for providing parameters into
See moreARTStats‘s methods with paginated results.Declaration
Objective-C
@interface ARTStatsQuery : ARTDataQuerySwift
class ARTStatsQuery : ARTDataQuery -
Contains the aggregate counts for messages and data transferred.
See moreDeclaration
Objective-C
@interface ARTStatsMessageCount : NSObjectSwift
class ARTStatsMessageCount : NSObject -
Contains a breakdown of summary stats data for different (channel vs presence) message types.
See moreDeclaration
Objective-C
@interface ARTStatsMessageTypes : NSObjectSwift
class ARTStatsMessageTypes : NSObject -
Contains a breakdown of summary stats data for traffic over various transport types.
See moreDeclaration
Objective-C
@interface ARTStatsMessageTraffic : NSObjectSwift
class ARTStatsMessageTraffic : NSObject -
Contains the aggregate data for usage of a resource in a specific scope.
See moreDeclaration
Objective-C
@interface ARTStatsResourceCount : NSObjectSwift
class ARTStatsResourceCount : NSObject -
Contains a breakdown of summary stats data for different (
See moreTLSvs non-TLS) connection types.Declaration
Objective-C
@interface ARTStatsConnectionTypes : NSObjectSwift
class ARTStatsConnectionTypes : NSObject -
Contains the aggregate counts for requests made.
See moreDeclaration
Objective-C
@interface ARTStatsRequestCount : NSObjectSwift
class ARTStatsRequestCount : NSObject -
Details the stats on push notifications.
See moreDeclaration
Objective-C
@interface ARTStatsPushCount : NSObjectSwift
class ARTStatsPushCount : NSObject -
Contains application statistics for a specified time interval and time period.
See moreDeclaration
Objective-C
@interface ARTStats : NSObjectSwift
class ARTStats : NSObject -
A generic Ably error object that contains an Ably-specific status code, and a generic status code. Errors returned from the Ably server are compatible with the
See moreARTErrorInfostructure and should result in errors that inherit fromARTErrorInfo.Declaration
Objective-C
@interface ARTErrorInfo : NSErrorSwift
class ARTErrorInfo : NSError -
Summary with total count and list of client IDs.
See moreDeclaration
Objective-C
@interface ARTSummaryClientIdList : NSObjectSwift
class ARTSummaryClientIdList : NSObject, @unchecked Sendable -
Summary with total count and dictionary mapping client IDs to counts.
See moreDeclaration
Objective-C
@interface ARTSummaryClientIdCounts : NSObjectSwift
class ARTSummaryClientIdCounts : NSObject, @unchecked Sendable -
Summary with only total count.
See moreDeclaration
Objective-C
@interface ARTSummaryTotal : NSObjectSwift
class ARTSummaryTotal : NSObject, @unchecked Sendable -
Contains an Ably Token and its associated metadata.
See moreDeclaration
Objective-C
@interface ARTTokenDetails : NSObject <NSCopying>Swift
class ARTTokenDetails : NSObject, NSCopying -
Defines the properties of an Ably Token.
See moreDeclaration
Objective-C
@interface ARTTokenParams : NSObject <NSCopying>Swift
class ARTTokenParams : NSObject, NSCopying -
Contains the properties of a request for a token to Ably. Tokens are generated using
See more-[ARTAuthProtocol requestToken:].Declaration
Objective-C
@interface ARTTokenRequest : NSObjectSwift
class ARTTokenRequest : NSObject -
Contains
See moreARTRealtimeConnectionStatechange information emitted by theARTConnectionobject.Declaration
Objective-C
@interface ARTConnectionStateChange : NSObjectSwift
class ARTConnectionStateChange : NSObject, @unchecked Sendable -
Contains state change information emitted by an
See moreARTRealtimeChannelobject.Declaration
Objective-C
@interface ARTChannelStateChange : NSObjectSwift
class ARTChannelStateChange : NSObject, @unchecked Sendable -
Contains the metrics associated with a
See moreARTRestChannelorARTRealtimeChannel, such as the number of publishers, subscribers and connections it has.Declaration
Objective-C
@interface ARTChannelMetrics : NSObjectSwift
class ARTChannelMetrics : NSObject, @unchecked Sendable -
Contains the metrics of a
See moreARTRestChannelorARTRealtimeChannelobject.Declaration
Objective-C
@interface ARTChannelOccupancy : NSObjectSwift
class ARTChannelOccupancy : NSObject, @unchecked Sendable -
Contains the status of a
See moreARTRestChannelorARTRealtimeChannelobject such as whether it is active and itsARTChannelOccupancy.Declaration
Objective-C
@interface ARTChannelStatus : NSObjectSwift
class ARTChannelStatus : NSObject, @unchecked Sendable -
Contains the details of a
See moreARTRestChannelorARTRealtimeChannelobject such as its ID andARTChannelStatus.Declaration
Objective-C
@interface ARTChannelDetails : NSObjectSwift
class ARTChannelDetails : NSObject, @unchecked Sendable -
Contains the result of an update or delete message operation.
See moreDeclaration
Objective-C
@interface ARTUpdateDeleteResult : NSObjectSwift
class ARTUpdateDeleteResult : NSObject, @unchecked Sendable
Classes Reference