ARTRealtimeChannel
Objective-C
@interface ARTRealtimeChannel : NSObject <ARTRealtimeChannelProtocol>
Swift
class ARTRealtimeChannel : NSObject, ARTRealtimeChannelProtocol, @unchecked Sendable
Enables messages to be published and subscribed to. Also enables historic messages to be retrieved and provides access to the ARTRealtimePresence
object of a channel.
Also implements ARTEventEmitter
interface and emits ARTChannelEvent
events, where a ARTChannelEvent
is either a ARTRealtimeChannelState
or an ARTChannelEvent.ARTChannelEventUpdate
.
-
An
ARTRealtimePresence
object.Declaration
Objective-C
@property (readonly) ARTRealtimePresence *_Nonnull presence;
Swift
var presence: ARTRealtimePresence { get }
-
An
ARTRealtimeAnnotations
object.Declaration
Objective-C
@property (readonly) ARTRealtimeAnnotations *_Nonnull annotations;
Swift
var annotations: ARTRealtimeAnnotations { get }
-
An
ARTPushChannel
object.Declaration
Objective-C
@property (readonly) ARTPushChannel *_Nonnull push;
Swift
var push: ARTPushChannel { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeChannelInternal *internal
Swift
var `internal`: ARTRealtimeChannelInternal { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeInternal *realtimeInternal
Swift
var realtimeInternal: ARTRealtimeInternal { get }
-
Undocumented
Declaration
Objective-C
- (void)internalAsync:(void (^)(ARTRealtimeChannelInternal *))use;
Swift
func internalAsync(_ use: @escaping (ARTRealtimeChannelInternal) -> Void)
-
Undocumented
Declaration
Objective-C
- (void)internalSync:(void (^)(ARTRealtimeChannelInternal *))use;
Swift
func internalSync(_ use: @escaping (ARTRealtimeChannelInternal) -> Void)
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithInternal:(ARTRealtimeChannelInternal *)internal realtimeInternal:(ARTRealtimeInternal *)realtimeInternal queuedDealloc:(ARTQueuedDealloc *)dealloc;
Swift
init(with internal: ARTRealtimeChannelInternal, realtimeInternal: ARTRealtimeInternal, queuedDealloc dealloc: ARTQueuedDealloc)