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.
		
		
		
		
		
			
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import "ConversationViewAction.h"
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @class AccountManager;
 | |
| @class CallService;
 | |
| @class CallUIAdapter;
 | |
| @class HomeVC;
 | |
| @class OWSMessageFetcherJob;
 | |
| @class OWSNavigationController;
 | |
| @class OutboundCallInitiator;
 | |
| @class TSThread;
 | |
| 
 | |
| @interface SignalApp : NSObject
 | |
| 
 | |
| @property (nonatomic, nullable, weak) HomeVC *homeViewController;
 | |
| @property (nonatomic, nullable, weak) OWSNavigationController *signUpFlowNavigationController;
 | |
| 
 | |
| - (instancetype)init NS_UNAVAILABLE;
 | |
| 
 | |
| + (instancetype)sharedApp;
 | |
| 
 | |
| - (void)setup;
 | |
| 
 | |
| #pragma mark - Conversation Presentation
 | |
| 
 | |
| - (void)presentConversationForRecipientId:(NSString *)recipientId animated:(BOOL)isAnimated;
 | |
| 
 | |
| - (void)presentConversationForRecipientId:(NSString *)recipientId
 | |
|                                    action:(ConversationViewAction)action
 | |
|                                  animated:(BOOL)isAnimated;
 | |
| 
 | |
| - (void)presentConversationForThreadId:(NSString *)threadId animated:(BOOL)isAnimated;
 | |
| 
 | |
| - (void)presentConversationForThread:(TSThread *)thread animated:(BOOL)isAnimated;
 | |
| 
 | |
| - (void)presentConversationForThread:(TSThread *)thread action:(ConversationViewAction)action animated:(BOOL)isAnimated;
 | |
| 
 | |
| - (void)presentConversationForThread:(TSThread *)thread
 | |
|                               action:(ConversationViewAction)action
 | |
|                       focusMessageId:(nullable NSString *)focusMessageId
 | |
|                             animated:(BOOL)isAnimated;
 | |
| 
 | |
| - (void)presentConversationAndScrollToFirstUnreadMessageForThreadId:(NSString *)threadId animated:(BOOL)isAnimated;
 | |
| 
 | |
| #pragma mark - Methods
 | |
| 
 | |
| + (void)resetAppData;
 | |
| + (void)resetAppData:(void (^__nullable)(void))onReset;
 | |
| 
 | |
| 
 | |
| - (void)showHomeView;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |