62 lines
2.1 KiB
Objective-C
62 lines
2.1 KiB
Objective-C
//
|
|
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <SignalMessaging/OWSContactAvatarBuilder.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class SDSAnyReadTransaction;
|
|
@class SignalServiceAddress;
|
|
@class TSThread;
|
|
|
|
@interface ContactTableViewCell : UITableViewCell
|
|
|
|
@property (assign, nonatomic) BOOL forceDarkAppearance;
|
|
|
|
+ (NSString *)reuseIdentifier;
|
|
|
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier;
|
|
|
|
- (instancetype)initWithStyle:(UITableViewCellStyle)style
|
|
reuseIdentifier:(nullable NSString *)reuseIdentifier
|
|
allowUserInteraction:(BOOL)allowUserInteraction NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (void)configureWithSneakyTransactionWithRecipientAddress:(SignalServiceAddress *)address
|
|
localUserAvatarMode:(LocalUserAvatarMode)localUserAvatarMode
|
|
NS_SWIFT_NAME(configureWithSneakyTransaction(recipientAddress:localUserAvatarMode:));
|
|
|
|
- (void)configureWithRecipientAddress:(SignalServiceAddress *)address
|
|
localUserAvatarMode:(LocalUserAvatarMode)localUserAvatarMode
|
|
transaction:(SDSAnyReadTransaction *)transaction;
|
|
|
|
- (void)configureWithThread:(TSThread *)thread
|
|
localUserAvatarMode:(LocalUserAvatarMode)localUserAvatarMode
|
|
transaction:(SDSAnyReadTransaction *)transaction;
|
|
|
|
// This method should be called _before_ the configure... methods.
|
|
- (void)setAccessoryMessage:(nullable NSString *)accessoryMessage;
|
|
|
|
// This method should be called _after_ the configure... methods.
|
|
- (void)setAttributedSubtitle:(nullable NSAttributedString *)attributedSubtitle;
|
|
|
|
// This method should be called _after_ the configure... methods.
|
|
- (void)setSubtitle:(nullable NSString *)subtitle;
|
|
|
|
- (void)setCustomName:(nullable NSString *)customName;
|
|
- (void)setCustomNameAttributed:(nullable NSAttributedString *)customName;
|
|
|
|
- (void)setUseLargeAvatars;
|
|
|
|
- (NSAttributedString *)verifiedSubtitle;
|
|
|
|
- (BOOL)hasAccessoryText;
|
|
|
|
- (void)ows_setAccessoryView:(UIView *)accessoryView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|