session-ios/Session/Conversations/ConversationInputTextView.h

44 lines
946 B
C
Raw Normal View History

2017-10-10 22:13:54 +02:00
//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
2017-10-10 22:13:54 +02:00
//
2020-11-11 07:45:50 +01:00
#import <SignalUtilitiesKit/OWSTextView.h>
2018-08-15 23:09:59 +02:00
2017-10-10 22:13:54 +02:00
NS_ASSUME_NONNULL_BEGIN
@class SignalAttachment;
@protocol ConversationInputTextViewDelegate <NSObject>
- (void)didPasteAttachment:(SignalAttachment *_Nullable)attachment;
- (void)inputTextViewSendMessagePressed;
- (void)textViewDidChange:(UITextView *)textView;
2017-10-10 22:13:54 +02:00
@end
#pragma mark -
@protocol ConversationTextViewToolbarDelegate <NSObject>
- (void)textViewDidChange:(UITextView *)textView;
- (void)textViewDidChangeSelection:(UITextView *)textView;
@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;
@property (weak, nonatomic) id<ConversationTextViewToolbarDelegate> textViewToolbarDelegate;
2017-10-10 22:13:54 +02:00
- (NSString *)trimmedText;
- (void)setPlaceholderText:(NSString *)placeholderText;
2017-10-10 22:13:54 +02:00
@end
NS_ASSUME_NONNULL_END