mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
41 lines
828 B
Objective-C
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
|