mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
733 B
C
45 lines
733 B
C
8 years ago
|
//
|
||
6 years ago
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class AvatarViewHelper;
|
||
|
@class OWSContactsManager;
|
||
8 years ago
|
@class SignalAccount;
|
||
8 years ago
|
@class TSThread;
|
||
|
|
||
|
@protocol AvatarViewHelperDelegate <NSObject>
|
||
|
|
||
6 years ago
|
- (nullable NSString *)avatarActionSheetTitle;
|
||
8 years ago
|
|
||
8 years ago
|
- (void)avatarDidChange:(UIImage *)image;
|
||
|
|
||
|
- (UIViewController *)fromViewController;
|
||
|
|
||
8 years ago
|
- (BOOL)hasClearAvatarAction;
|
||
|
|
||
|
@optional
|
||
|
|
||
|
- (NSString *)clearAvatarActionLabel;
|
||
|
|
||
|
- (void)clearAvatar;
|
||
|
|
||
8 years ago
|
@end
|
||
|
|
||
|
#pragma mark -
|
||
|
|
||
8 years ago
|
typedef void (^AvatarViewSuccessBlock)(void);
|
||
8 years ago
|
|
||
|
@interface AvatarViewHelper : NSObject
|
||
|
|
||
|
@property (nonatomic, weak) id<AvatarViewHelperDelegate> delegate;
|
||
|
|
||
|
- (void)showChangeAvatarUI;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|