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.
		
		
		
		
		
			
		
			
	
	
		
			56 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			56 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			C
		
	
| 
											9 years ago
										 | //
 | ||
|  | //  Copyright (c) 2017 Open Whisper Systems. All rights reserved.
 | ||
|  | //
 | ||
|  | 
 | ||
|  | #import <UIKit/UIKit.h>
 | ||
|  | 
 | ||
| 
											9 years ago
										 | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
| 
											9 years ago
										 | @class Contact; | ||
| 
											9 years ago
										 | @class SignalAccount; | ||
| 
											9 years ago
										 | @class OWSBlockingManager; | ||
| 
											9 years ago
										 | @class OWSContactsManager; | ||
| 
											9 years ago
										 | 
 | ||
|  | typedef void (^BlockActionCompletionBlock)(BOOL isBlocked); | ||
|  | 
 | ||
|  | @interface BlockListUIUtils : NSObject | ||
|  | 
 | ||
|  | - (instancetype)init NS_UNAVAILABLE; | ||
|  | 
 | ||
| 
											9 years ago
										 | #pragma mark - Block
 | ||
|  | 
 | ||
| 
											9 years ago
										 | + (void)showBlockPhoneNumberActionSheet:(NSString *)phoneNumber | ||
|  |                      fromViewController:(UIViewController *)fromViewController | ||
|  |                         blockingManager:(OWSBlockingManager *)blockingManager | ||
| 
											9 years ago
										 |                         contactsManager:(OWSContactsManager *)contactsManager | ||
| 
											9 years ago
										 |                         completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | + (void)showBlockSignalAccountActionSheet:(SignalAccount *)signalAccount | ||
|  |                        fromViewController:(UIViewController *)fromViewController | ||
|  |                           blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                           contactsManager:(OWSContactsManager *)contactsManager | ||
|  |                           completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | #pragma mark - Unblock
 | ||
|  | 
 | ||
| 
											9 years ago
										 | + (void)showUnblockPhoneNumberActionSheet:(NSString *)phoneNumber | ||
|  |                        fromViewController:(UIViewController *)fromViewController | ||
|  |                           blockingManager:(OWSBlockingManager *)blockingManager | ||
| 
											9 years ago
										 |                           contactsManager:(OWSContactsManager *)contactsManager | ||
| 
											9 years ago
										 |                           completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | + (void)showUnblockSignalAccountActionSheet:(SignalAccount *)signalAccount | ||
|  |                          fromViewController:(UIViewController *)fromViewController | ||
|  |                             blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                             contactsManager:(OWSContactsManager *)contactsManager | ||
|  |                             completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | #pragma mark - UI Utils
 | ||
|  | 
 | ||
|  | + (NSString *)formatDisplayNameForAlertTitle:(NSString *)displayName; | ||
|  | + (NSString *)formatDisplayNameForAlertMessage:(NSString *)displayName; | ||
|  | 
 | ||
| 
											9 years ago
										 | @end | ||
| 
											9 years ago
										 | 
 | ||
|  | NS_ASSUME_NONNULL_END |