SKYChatTypingIndicator

@interface SKYChatTypingIndicator : NSObject

SKYChatTypingIndicator contains information about the typing event of the user in a conversation.

  • Gets the ID of all users who currently have typing indicator event.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSArray<NSString *> *userIDs;

    Swift

    var userIDs: [String] { get }
  • Gets the ID of all users who are typing.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSArray<NSString *> *typingUserIDs;

    Swift

    var typingUserIDs: [String] { get }
  • Returns the conversation ID for the typing event.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *conversationID;

    Swift

    var conversationID: String? { get }
  • Returns a copy of this typing indicator with updates applied from another typing indicator.

    Declaration

    Objective-C

    - (SKYChatTypingIndicator *_Nullable)
    typingIndicatorWithUpdatesFromTypingIndicator:
        (SKYChatTypingIndicator *_Nonnull)indicator;

    Swift

    func typingIndicatorWithUpdates(_ indicator: SKYChatTypingIndicator) -> SKYChatTypingIndicator?
  • Returns the last event type of the user.

    Declaration

    Objective-C

    - (SKYChatTypingEvent)lastEventWithUserID:(NSString *_Nonnull)userID;

    Swift

    func lastEvent(userID: String) -> SKYChatTypingEvent
  • Returns the last event date of the user.

    Declaration

    Objective-C

    - (NSDate *_Nullable)lastEventDateWithUserID:(NSString *_Nonnull)userID;

    Swift

    func lastEventDate(userID: String) -> Date?
  • Instantiate an instance of SKYChatTypingIndicator.

    Most developer do not need to create an instance of SKYChatTypingIndicator. The SDK creates instances of this class to provide information of typing event.

    Declaration

    Objective-C

    - (instancetype _Nullable)
    initWithDictionary:(NSDictionary<NSString *, id> *_Nullable)dict
        conversationID:(NSString *_Nullable)conversationID;

    Swift

    init?(dictionary dict: [String : Any]?, conversationID: String?)