mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
2c83046ff6
- Use single MessagesViewController. Goal: Being able to reuse that UI for SplitViewController on iPad. Prevents unnecessary deallocations and re-allocations. - Remove custom archiving UI for default swipe right to left archive action, like in iOS Mail.app. - DynamicType for main view. - Simplify API of MessagesViewController to prevent undefined behavior. //FREEBIE
39 lines
1.4 KiB
Objective-C
39 lines
1.4 KiB
Objective-C
//
|
|
// MessagesViewController.h
|
|
// Signal
|
|
//
|
|
// Created by Dylan Bourgeois on 28/10/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import <MediaPlayer/MediaPlayer.h>
|
|
#import "APNavigationController.h"
|
|
#import "JSQMessages.h"
|
|
#import "JSQMessagesViewController.h"
|
|
#import "TSGroupModel.h"
|
|
@class TSThread;
|
|
|
|
@interface MessagesViewController : JSQMessagesViewController <UIImagePickerControllerDelegate,
|
|
UINavigationControllerDelegate,
|
|
UITextViewDelegate,
|
|
AVAudioRecorderDelegate,
|
|
AVAudioPlayerDelegate,
|
|
UIGestureRecognizerDelegate>
|
|
|
|
|
|
@property (nonatomic, readonly) TSThread *thread;
|
|
@property (nonatomic, retain) APNavigationController *navController;
|
|
@property (nonatomic, strong) MPMoviePlayerController *videoPlayer;
|
|
@property (nonatomic, strong) AVAudioPlayer *audioPlayer;
|
|
@property (nonatomic, strong) AVAudioRecorder *audioRecorder;
|
|
|
|
- (void)configureForThread:(TSThread *)thread keyboardOnViewAppearing:(BOOL)keyboardAppearing;
|
|
- (void)popKeyBoard;
|
|
|
|
#pragma mark 3D Touch Methods
|
|
|
|
- (void)peekSetup;
|
|
- (void)popped;
|
|
|
|
@end
|