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.
		
		
		
		
		
			
		
			
	
	
		
			69 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			69 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			C
		
	
| 
											9 years ago
										 | //
 | ||
| 
											7 years ago
										 | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
| 
											9 years ago
										 | //
 | ||
|  | 
 | ||
|  | #import <UIKit/UIKit.h>
 | ||
|  | 
 | ||
| 
											9 years ago
										 | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
| 
											9 years ago
										 | @class Contact; | ||
|  | @class OWSBlockingManager; | ||
| 
											7 years ago
										 | @class SignalAccount; | ||
| 
											7 years ago
										 | @class TSGroupModel; | ||
| 
											7 years ago
										 | @class TSThread; | ||
| 
											9 years ago
										 | 
 | ||
|  | typedef void (^BlockActionCompletionBlock)(BOOL isBlocked); | ||
|  | 
 | ||
|  | @interface BlockListUIUtils : NSObject | ||
|  | 
 | ||
|  | - (instancetype)init NS_UNAVAILABLE; | ||
|  | 
 | ||
| 
											9 years ago
										 | #pragma mark - Block
 | ||
|  | 
 | ||
| 
											7 years ago
										 | + (void)showBlockThreadActionSheet:(TSThread *)thread | ||
|  |                 fromViewController:(UIViewController *)fromViewController | ||
|  |                    blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                    completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
|  | 
 | ||
| 
											9 years ago
										 | + (void)showBlockPhoneNumberActionSheet:(NSString *)phoneNumber | ||
|  |                      fromViewController:(UIViewController *)fromViewController | ||
|  |                         blockingManager:(OWSBlockingManager *)blockingManager | ||
| 
											9 years ago
										 |                         completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | + (void)showBlockSignalAccountActionSheet:(SignalAccount *)signalAccount | ||
|  |                        fromViewController:(UIViewController *)fromViewController | ||
|  |                           blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                           completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | #pragma mark - Unblock
 | ||
|  | 
 | ||
| 
											7 years ago
										 | + (void)showUnblockThreadActionSheet:(TSThread *)thread | ||
|  |                   fromViewController:(UIViewController *)fromViewController | ||
|  |                      blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                      completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
|  | 
 | ||
| 
											9 years ago
										 | + (void)showUnblockPhoneNumberActionSheet:(NSString *)phoneNumber | ||
|  |                        fromViewController:(UIViewController *)fromViewController | ||
|  |                           blockingManager:(OWSBlockingManager *)blockingManager | ||
| 
											9 years ago
										 |                           completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											9 years ago
										 | + (void)showUnblockSignalAccountActionSheet:(SignalAccount *)signalAccount | ||
|  |                          fromViewController:(UIViewController *)fromViewController | ||
|  |                             blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                             completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
| 
											9 years ago
										 | 
 | ||
| 
											7 years ago
										 | + (void)showUnblockGroupActionSheet:(TSGroupModel *)groupModel | ||
|  |                         displayName:(NSString *)displayName | ||
|  |                  fromViewController:(UIViewController *)fromViewController | ||
|  |                     blockingManager:(OWSBlockingManager *)blockingManager | ||
|  |                     completionBlock:(nullable BlockActionCompletionBlock)completionBlock; | ||
|  | 
 | ||
| 
											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 |