session-ios/Signal/src/ViewControllers/ConversationView/ConversationInputTextView.h
2018-11-12 09:55:00 -06:00

41 lines
828 B
Objective-C

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import <SignalMessaging/OWSTextView.h>
NS_ASSUME_NONNULL_BEGIN
@class SignalAttachment;
@protocol ConversationInputTextViewDelegate <NSObject>
- (void)didPasteAttachment:(SignalAttachment *_Nullable)attachment;
- (void)inputTextViewSendMessagePressed;
- (void)textViewDidChange:(UITextView *)textView;
@end
#pragma mark -
@protocol ConversationTextViewToolbarDelegate <NSObject>
- (void)textViewDidChange:(UITextView *)textView;
@end
#pragma mark -
@interface ConversationInputTextView : OWSTextView
@property (weak, nonatomic) id<ConversationInputTextViewDelegate> inputTextViewDelegate;
@property (weak, nonatomic) id<ConversationTextViewToolbarDelegate> textViewToolbarDelegate;
- (NSString *)trimmedText;
@end
NS_ASSUME_NONNULL_END