SKYChatReceipt

@interface SKYChatReceipt : NSObject

SKYChatReceipt contains information about the receipt status of a message for each user. Receipt contains date and time for delivery and read status.

  • The User ID of the user to whom the message is delivered or read.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSString *userID;

    Swift

    var userID: String { get }
  • Gets date and time the message is delivered to the user.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDate *deliveredAt;

    Swift

    var deliveredAt: Date? { get }
  • Gets date and time the message is read by the user.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDate *readAt;

    Swift

    var readAt: Date? { get }
  • Gets the receipt status.

    The receipt status is calculated from the date of delivery and read of the message.

    Declaration

    Objective-C

    @property (readonly, nonatomic) SKYChatReceiptStatus status;

    Swift

    var status: SKYChatReceiptStatus { get }
  • Instantiates an instance of SKYChatReceipt.

    Most developer do not need to create an instance of SKYChatReceipt. The SDK creates instances of this class to provide information of message receipt.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithReceiptDictionary:
        (NSDictionary<NSString *, id> *_Nonnull)dict;

    Swift

    init?(receiptDictionary dict: [String : Any])