2017-07-31 23:12:09 +02:00
|
|
|
//
|
2019-02-15 22:46:06 +01:00
|
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
2017-07-31 23:12:09 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@class AvatarViewHelper;
|
|
|
|
@class OWSContactsManager;
|
2017-11-08 20:04:51 +01:00
|
|
|
@class SignalAccount;
|
2017-07-31 23:12:09 +02:00
|
|
|
@class TSThread;
|
|
|
|
|
|
|
|
@protocol AvatarViewHelperDelegate <NSObject>
|
|
|
|
|
2019-02-15 22:46:06 +01:00
|
|
|
- (nullable NSString *)avatarActionSheetTitle;
|
2017-08-01 17:31:00 +02:00
|
|
|
|
2017-07-31 23:12:09 +02:00
|
|
|
- (void)avatarDidChange:(UIImage *)image;
|
|
|
|
|
|
|
|
- (UIViewController *)fromViewController;
|
|
|
|
|
2017-08-01 17:58:51 +02:00
|
|
|
- (BOOL)hasClearAvatarAction;
|
|
|
|
|
|
|
|
@optional
|
|
|
|
|
|
|
|
- (NSString *)clearAvatarActionLabel;
|
|
|
|
|
|
|
|
- (void)clearAvatar;
|
|
|
|
|
2017-07-31 23:12:09 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
|
2017-11-08 20:04:51 +01:00
|
|
|
typedef void (^AvatarViewSuccessBlock)(void);
|
2017-07-31 23:12:09 +02:00
|
|
|
|
|
|
|
@interface AvatarViewHelper : NSObject
|
|
|
|
|
|
|
|
@property (nonatomic, weak) id<AvatarViewHelperDelegate> delegate;
|
|
|
|
|
|
|
|
- (void)showChangeAvatarUI;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|