mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
- [ ] document picker - [ ] camera picker - [ ] image picker - [ ] restore "confirm to go back" behavior (interactive pop gesture?) // FREEBIE
51 lines
1.6 KiB
Objective-C
51 lines
1.6 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "ConversationViewController.h"
|
|
|
|
@class AccountManager;
|
|
@class CallService;
|
|
@class CallUIAdapter;
|
|
@class HomeViewController;
|
|
@class NotificationsManager;
|
|
@class OWSMessageFetcherJob;
|
|
@class OWSNavigationController;
|
|
@class OWSWebRTCCallMessageHandler;
|
|
@class OutboundCallInitiator;
|
|
@class TSThread;
|
|
|
|
@interface SignalApp : NSObject
|
|
|
|
@property (nonatomic, weak) HomeViewController *homeViewController;
|
|
@property (nonatomic, weak) OWSNavigationController *signUpFlowNavigationController;
|
|
|
|
// TODO: Convert to singletons?
|
|
@property (nonatomic, readonly) OWSWebRTCCallMessageHandler *callMessageHandler;
|
|
@property (nonatomic, readonly) CallService *callService;
|
|
@property (nonatomic, readonly) CallUIAdapter *callUIAdapter;
|
|
@property (nonatomic, readonly) OutboundCallInitiator *outboundCallInitiator;
|
|
@property (nonatomic, readonly) OWSMessageFetcherJob *messageFetcherJob;
|
|
@property (nonatomic, readonly) NotificationsManager *notificationsManager;
|
|
@property (nonatomic, readonly) AccountManager *accountManager;
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
+ (instancetype)sharedApp;
|
|
|
|
#pragma mark - View Convenience Methods
|
|
|
|
- (void)presentConversationForRecipientId:(NSString *)recipientId;
|
|
- (void)presentConversationForRecipientId:(NSString *)recipientId action:(ConversationViewAction)action;
|
|
- (void)presentConversationForThreadId:(NSString *)threadId;
|
|
- (void)presentConversationForThread:(TSThread *)thread;
|
|
- (void)presentConversationForThread:(TSThread *)thread action:(ConversationViewAction)action;
|
|
|
|
#pragma mark - Methods
|
|
|
|
+ (void)resetAppData;
|
|
|
|
+ (void)clearAllNotifications;
|
|
|
|
@end
|