2017-10-10 22:13:54 +02:00
|
|
|
//
|
2018-07-03 04:04:15 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-10-10 22:13:54 +02:00
|
|
|
//
|
|
|
|
|
2018-08-15 23:09:59 +02:00
|
|
|
#import <SignalMessaging/OWSTextView.h>
|
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@class SignalAttachment;
|
|
|
|
|
|
|
|
@protocol ConversationInputTextViewDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)didPasteAttachment:(SignalAttachment *_Nullable)attachment;
|
|
|
|
|
2017-11-01 16:28:58 +01:00
|
|
|
- (void)inputTextViewSendMessagePressed;
|
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
|
2017-10-17 16:07:57 +02:00
|
|
|
@protocol ConversationTextViewToolbarDelegate <NSObject>
|
|
|
|
|
2018-07-03 04:04:15 +02:00
|
|
|
- (void)textViewDidChange:(UITextView *)textView;
|
2017-10-17 16:07:57 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
|
2018-08-15 23:09:59 +02:00
|
|
|
@interface ConversationInputTextView : OWSTextView
|
2017-10-10 22:13:54 +02:00
|
|
|
|
|
|
|
@property (weak, nonatomic) id<ConversationInputTextViewDelegate> inputTextViewDelegate;
|
|
|
|
|
2017-10-17 16:07:57 +02:00
|
|
|
@property (weak, nonatomic) id<ConversationTextViewToolbarDelegate> textViewToolbarDelegate;
|
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
- (NSString *)trimmedText;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|