Signal-iOS/SignalMessaging/Views/ContactCellView.h
2020-04-22 15:21:34 -03:00

40 lines
923 B
Objective-C

//
// Copyright (c) 2020 Open Whisper Systems. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
extern const CGFloat kContactCellAvatarTextMargin;
@class SDSAnyReadTransaction;
@class SignalServiceAddress;
@class TSThread;
@interface ContactCellView : UIStackView
@property (nonatomic, nullable) NSString *accessoryMessage;
@property (nonatomic, nullable) NSAttributedString *customName;
@property (nonatomic, nullable) UIImage *customAvatar;
@property (nonatomic) BOOL useSmallAvatars;
- (void)configureWithRecipientAddress:(SignalServiceAddress *)address;
- (void)configureWithThread:(TSThread *)thread transaction:(SDSAnyReadTransaction *)transaction;
- (void)prepareForReuse;
- (NSAttributedString *)verifiedSubtitle;
- (void)setAttributedSubtitle:(nullable NSAttributedString *)attributedSubtitle;
- (BOOL)hasAccessoryText;
- (void)setAccessoryView:(UIView *)accessoryView;
@end
NS_ASSUME_NONNULL_END