session-ios/Signal/src/ViewControllers/MessagesViewController.h
2017-03-31 11:58:52 -04:00

52 lines
1.5 KiB
Objective-C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import <JSQMessagesViewController/JSQMessagesViewController.h>
#import "TSGroupModel.h"
@class TSThread;
extern NSString *const OWSMessagesViewControllerDidAppearNotification;
@interface OWSMessagesComposerTextView : JSQMessagesComposerTextView
@end
#pragma mark -
@interface OWSMessagesToolbarContentView : JSQMessagesToolbarContentView
@end
#pragma mark -
@interface OWSMessagesInputToolbar : JSQMessagesInputToolbar
@end
#pragma mark -
@interface MessagesViewController : JSQMessagesViewController <UIImagePickerControllerDelegate,
UINavigationControllerDelegate,
UITextViewDelegate,
AVAudioRecorderDelegate,
AVAudioPlayerDelegate,
UIGestureRecognizerDelegate>
@property (nonatomic, readonly) TSThread *thread;
@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