SKTConversationActivity

Objective-C

@interface SKTConversationActivity : NSObject

Swift

class SKTConversationActivity : NSObject

An activity related to a SKTConversation

  • @abstract the role of who is performing the typing activity

    Declaration

    Objective-C

    @property (readonly, nullable) NSString *role;

    Swift

    var role: String? { get }
  • @abstract the type of activity that is being triggered. Could be either

    • SKTConversationActivityTypeTypingStart
    • SKTConversationActivityTypeTypingStop
    • SKTConversationActivityTypeConversationRead
    • SKTConversationActivityTypeConversationAdded
    • SKTConversationActivityTypeConversationRemoved
    • SKTConversationActivityTypeParticipantAdded
    • SKTConversationActivityTypeParticipantRemoved

    Declaration

    Objective-C

    @property (readonly) NSString *_Nonnull type;

    Swift

    var type: String { get }
  • @abstract additional data for this activity. Posible values are the business’s ‘name’ and/or ‘avatarUrl’

    Declaration

    Objective-C

    @property (readonly, nullable) NSDictionary *data;

    Swift

    var data: [AnyHashable : Any]? { get }
  • @abstract conversationId for activity. Can be nil

    Declaration

    Objective-C

    @property (readonly, nullable) NSString *conversationId;

    Swift

    var conversationId: String? { get }
  • @abstract date when the business last read user messages for activities of type SKTConversationActivityTypeConversationRead

    Declaration

    Objective-C

    @property (readonly, nullable) NSDate *businessLastRead;

    Swift

    var businessLastRead: Date? { get }
  • @abstract The userId if available, null otherwise

    available for SKTConversationActivityTypeParticipantAdded, SKTConversationActivityTypeParticipantRemoved

    Declaration

    Objective-C

    @property (readonly, nullable) NSString *userId;

    Swift

    var userId: String? { get }