Signal-iOS/SignalMessaging/Views/ContactCellView.h
2021-03-04 18:32:24 -08:00

47 lines
1.2 KiB
Objective-C

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