Classes
The following classes are available globally.
-
Creates Ably
ARTTokenRequest
objects and obtains Ably Tokens from Ably to subsequently issue to less trusted clients.See
SeeARTAuthProtocol
for 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 moreARTAuthOptions
are 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 moreARTMessage
and anARTPresenceMessage
objects.Declaration
Objective-C
@interface ARTBaseMessage : NSObject <NSCopying>
Swift
class ARTBaseMessage : NSObject, NSCopying
-
The base class for
ARTRestChannel
andARTRealtimeChannel
. Ably platform service organizes the message traffic within applications into named channels. Channels are the medium through which messages are distributed; clients attach to channels to subscribe to messages, and every message published to a unique channel is broadcast by Ably to all subscribers.See
SeeARTChannelProtocol
for details.Declaration
Objective-C
@interface ARTChannel : NSObject <ARTChannelProtocol>
Swift
class ARTChannel : NSObject, ARTChannelProtocol, @unchecked Sendable
-
Passes additional properties to an
See moreARTRestChannel
object, such as encryption.Declaration
Objective-C
@interface ARTChannelOptions : NSObject
Swift
class ARTChannelOptions : NSObject
-
Creates and destroys
See moreARTRestChannel
andARTRealtimeChannel
objects.Declaration
Objective-C
@interface ARTChannels<ChannelType> : NSObject
Swift
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 : NSObject
Swift
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 : ARTAuthOptions
Swift
class ARTClientOptions : ARTAuthOptions
-
Enables the management of a connection to Ably.
See
SeeARTConnectionProtocol
for details.Declaration
Objective-C
@interface ARTConnection : NSObject <ARTConnectionProtocol>
Swift
class ARTConnection : NSObject, ARTConnectionProtocol, @unchecked Sendable
-
Contains any constraints a client should adhere to and provides additional metadata about a
See moreARTConnection
, such as if a request to-[ARTChannelProtocol publish:callback:]
a message that exceeds the maximum message size should be rejected immediately without communicating with Ably.Declaration
Objective-C
@interface ARTConnectionDetails : NSObject
Swift
class ARTConnectionDetails : NSObject, @unchecked Sendable
-
Sets the properties to configure encryption for an
See moreARTRestChannel
orARTRealtimeChannel
object.Declaration
Objective-C
@interface ARTCipherParams : NSObject <ARTCipherParamsCompatible>
Swift
class ARTCipherParams : NSObject, ARTCipherParamsCompatible
-
Contains the properties required to configure the encryption of
See moreARTMessage
payloads.Declaration
Objective-C
@interface ARTCrypto : NSObject
Swift
class ARTCrypto : NSObject
-
This object is used for providing parameters into methods with paginated results.
See moreDeclaration
Objective-C
@interface ARTDataQuery : NSObject
Swift
class ARTDataQuery : NSObject
-
This object is used for providing parameters into
See moreARTRealtimePresence
‘s methods with paginated results.Declaration
Objective-C
@interface ARTRealtimeHistoryQuery : ARTDataQuery
Swift
class ARTRealtimeHistoryQuery : ARTDataQuery
-
Represents default library settings.
See moreDeclaration
Objective-C
@interface ARTDefault : NSObject
Swift
class ARTDefault : NSObject
-
Contains the properties of a device registered for push notifications.
See moreDeclaration
Objective-C
@interface ARTDeviceDetails : NSObject
Swift
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 : NSObject
Swift
class ARTDevicePushDetails : NSObject, @unchecked Sendable
-
An object representing a listener returned by
ARTEventEmitter
methods.Declaration
Objective-C
@interface ARTEventListener : NSObject
Swift
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 moreARTConnection
andARTRealtimeChannel
objects emit events for their state using theARTEventEmitter
pattern.Declaration
Objective-C
@interface ARTEventEmitter<EventType : id <ARTEventIdentification>, ItemType> : NSObject
Swift
class ARTEventEmitter<EventType, ItemType> : NSObject, @unchecked Sendable where EventType : ARTEventIdentification, ItemType : AnyObject
-
A superset of
See moreARTPaginatedResult
which represents a page of results plus metadata indicating the relative queries available to it.ARTHttpPaginatedResponse
additionally 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 moreARTLocalDevice
extendsARTDeviceDetails
.Declaration
Objective-C
@interface ARTLocalDevice : ARTDeviceDetails
Swift
class ARTLocalDevice : ARTDeviceDetails, @unchecked Sendable
-
Contains an individual message that is sent to, or received from, Ably.
See moreDeclaration
Objective-C
@interface ARTMessage : ARTBaseMessage
Swift
class ARTMessage : ARTBaseMessage
-
Contains a page of results for message or presence history, stats, or REST presence requests. An
See moreARTPaginatedResult
response from a REST API paginated query is also accompanied by metadata that indicates the relative queries available to theARTPaginatedResult
object.Declaration
Objective-C
@interface ARTPaginatedResult<ItemType> : NSObject
Swift
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 : ARTBaseMessage
Swift
class ARTPresenceMessage : ARTBaseMessage
-
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
SeeARTPushChannelProtocol
for 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 : NSObject
Swift
class ARTPushChannelSubscription : NSObject
-
Enables device push channel subscriptions.
See
SeeARTPushChannelSubscriptionsProtocol
for 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
SeeARTPushDeviceRegistrationsProtocol
for details.Declaration
Objective-C
@interface ARTPushDeviceRegistrations : NSObject <ARTPushDeviceRegistrationsProtocol>
Swift
class ARTPushDeviceRegistrations : NSObject, ARTPushDeviceRegistrationsProtocol, @unchecked Sendable
-
A client that extends the functionality of the
See moreARTRest
and provides additional realtime-specific features.Declaration
Objective-C
@interface ARTRealtime : NSObject <ARTRealtimeProtocol>
Swift
class ARTRealtime : NSObject, ARTRealtimeProtocol, @unchecked Sendable
-
Describes the properties of the channel state.
See moreDeclaration
Objective-C
@interface ARTChannelProperties : NSObject
Swift
class ARTChannelProperties : NSObject
-
Enables messages to be published and subscribed to. Also enables historic messages to be retrieved and provides access to the
See moreARTRealtimePresence
object of a channel. Also implementsARTEventEmitter
interface and emitsARTChannelEvent
events, where aARTChannelEvent
is either aARTRealtimeChannelState
or anARTChannelEvent.ARTChannelEventUpdate
.Declaration
Objective-C
@interface ARTRealtimeChannel : NSObject <ARTRealtimeChannelProtocol>
Swift
class ARTRealtimeChannel : NSObject, ARTRealtimeChannelProtocol, @unchecked Sendable
-
Passes additional properties to an
See moreARTRealtimeChannel
object, such as encryption, anARTChannelMode
and channel parameters.Declaration
Objective-C
@interface ARTRealtimeChannelOptions : ARTChannelOptions
Swift
class ARTRealtimeChannelOptions : ARTChannelOptions
-
This object is used for providing parameters into
See moreARTRealtimePresence
‘s methods with paginated results.Declaration
Objective-C
@interface ARTRealtimePresenceQuery : ARTPresenceQuery
Swift
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
SeeARTRealtimePresenceProtocol
for 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
-
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 : NSObject
Swift
class ARTPresenceQuery : NSObject
-
Enables the retrieval of the current and historic presence set for a channel.
See
SeeARTRestPresenceProtocol
for 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 : ARTDataQuery
Swift
class ARTStatsQuery : ARTDataQuery
-
Contains the aggregate counts for messages and data transferred.
See moreDeclaration
Objective-C
@interface ARTStatsMessageCount : NSObject
Swift
class ARTStatsMessageCount : NSObject
-
Contains a breakdown of summary stats data for different (channel vs presence) message types.
See moreDeclaration
Objective-C
@interface ARTStatsMessageTypes : NSObject
Swift
class ARTStatsMessageTypes : NSObject
-
Contains a breakdown of summary stats data for traffic over various transport types.
See moreDeclaration
Objective-C
@interface ARTStatsMessageTraffic : NSObject
Swift
class ARTStatsMessageTraffic : NSObject
-
Contains the aggregate data for usage of a resource in a specific scope.
See moreDeclaration
Objective-C
@interface ARTStatsResourceCount : NSObject
Swift
class ARTStatsResourceCount : NSObject
-
Contains a breakdown of summary stats data for different (
See moreTLS
vs non-TLS
) connection types.Declaration
Objective-C
@interface ARTStatsConnectionTypes : NSObject
Swift
class ARTStatsConnectionTypes : NSObject
-
Contains the aggregate counts for requests made.
See moreDeclaration
Objective-C
@interface ARTStatsRequestCount : NSObject
Swift
class ARTStatsRequestCount : NSObject
-
Details the stats on push notifications.
See moreDeclaration
Objective-C
@interface ARTStatsPushCount : NSObject
Swift
class ARTStatsPushCount : NSObject
-
Contains application statistics for a specified time interval and time period.
See moreDeclaration
Objective-C
@interface ARTStats : NSObject
Swift
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 moreARTErrorInfo
structure and should result in errors that inherit fromARTErrorInfo
.Declaration
Objective-C
@interface ARTErrorInfo : NSError
Swift
class ARTErrorInfo : NSError
-
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 : NSObject
Swift
class ARTTokenRequest : NSObject
-
Contains
See moreARTRealtimeConnectionState
change information emitted by theARTConnection
object.Declaration
Objective-C
@interface ARTConnectionStateChange : NSObject
Swift
class ARTConnectionStateChange : NSObject, @unchecked Sendable
-
Contains state change information emitted by an
See moreARTRealtimeChannel
object.Declaration
Objective-C
@interface ARTChannelStateChange : NSObject
Swift
class ARTChannelStateChange : NSObject, @unchecked Sendable
-
Contains the metrics associated with a
See moreARTRestChannel
orARTRealtimeChannel
, such as the number of publishers, subscribers and connections it has.Declaration
Objective-C
@interface ARTChannelMetrics : NSObject
Swift
class ARTChannelMetrics : NSObject, @unchecked Sendable
-
Contains the metrics of a
See moreARTRestChannel
orARTRealtimeChannel
object.Declaration
Objective-C
@interface ARTChannelOccupancy : NSObject
Swift
class ARTChannelOccupancy : NSObject, @unchecked Sendable
-
Contains the status of a
See moreARTRestChannel
orARTRealtimeChannel
object such as whether it is active and itsARTChannelOccupancy
.Declaration
Objective-C
@interface ARTChannelStatus : NSObject
Swift
class ARTChannelStatus : NSObject, @unchecked Sendable
-
Contains the details of a
See moreARTRestChannel
orARTRealtimeChannel
object such as its ID andARTChannelStatus
.Declaration
Objective-C
@interface ARTChannelDetails : NSObject
Swift
class ARTChannelDetails : NSObject, @unchecked Sendable