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.
		
		
		
		
		
			
		
			
				
	
	
		
			43 lines
		
	
	
		
			742 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			43 lines
		
	
	
		
			742 B
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <UIKit/UIKit.h>
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @class AvatarViewHelper;
 | |
| @class OWSContactsManager;
 | |
| 
 | |
| @protocol AvatarViewHelperDelegate <NSObject>
 | |
| 
 | |
| - (nullable NSString *)avatarActionSheetTitle;
 | |
| 
 | |
| - (void)avatarDidChange:(nullable UIImage *)image filePath:(nullable NSString *)filePath;
 | |
| 
 | |
| - (UIViewController *)fromViewController;
 | |
| 
 | |
| - (BOOL)hasClearAvatarAction;
 | |
| 
 | |
| @optional
 | |
| 
 | |
| - (NSString *)clearAvatarActionLabel;
 | |
| 
 | |
| - (void)clearAvatar;
 | |
| 
 | |
| @end
 | |
| 
 | |
| #pragma mark -
 | |
| 
 | |
| typedef void (^AvatarViewSuccessBlock)(void);
 | |
| 
 | |
| @interface AvatarViewHelper : NSObject
 | |
| 
 | |
| @property (nonatomic, weak) id<AvatarViewHelperDelegate> delegate;
 | |
| 
 | |
| - (void)showChangeAvatarUI;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |