ARTChannelStateChange
Objective-C
@interface ARTChannelStateChange : NSObject
Swift
class ARTChannelStateChange : NSObject, @unchecked Sendable
Contains state change information emitted by an ARTRealtimeChannel
object.
-
The new current
ARTRealtimeChannelState
.Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeChannelState current;
Swift
var current: ARTRealtimeChannelState { get }
-
The previous state. For the
ARTChannelEvent.ARTChannelEventUpdate
event, this is equal to thecurrent
state.Declaration
Objective-C
@property (nonatomic, readonly) ARTRealtimeChannelState previous;
Swift
var previous: ARTRealtimeChannelState { get }
-
The event that triggered this
ARTRealtimeChannelState
change.Declaration
Objective-C
@property (nonatomic, readonly) ARTChannelEvent event;
Swift
var event: ARTChannelEvent { get }
-
An
ARTErrorInfo
object containing any information relating to the transition.Declaration
Objective-C
@property (nonatomic, readonly, nullable) ARTErrorInfo *reason;
Swift
var reason: ARTErrorInfo? { get }
-
Indicates whether message continuity on this channel is preserved, see Nonfatal channel errors for more info.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL resumed;
Swift
var resumed: Bool { get }