60 lines
1.1 KiB
Objective-C
60 lines
1.1 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol ConversationInputToolbarDelegate <NSObject>
|
|
|
|
- (void)sendButtonPressed;
|
|
|
|
- (void)attachmentButtonPressed;
|
|
|
|
- (void)voiceMemoGestureDidStart;
|
|
|
|
- (void)voiceMemoGestureDidEnd;
|
|
|
|
- (void)voiceMemoGestureDidCancel;
|
|
|
|
- (void)voiceMemoGestureDidChange:(CGFloat)cancelAlpha;
|
|
|
|
- (void)textViewDidChange;
|
|
|
|
// TODO: Is this necessary.
|
|
//- (void)textViewDidBeginEditing;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@class ConversationInputTextView;
|
|
|
|
@protocol ConversationInputTextViewDelegate;
|
|
|
|
@interface ConversationInputToolbar : UIToolbar
|
|
|
|
@property (nonatomic, weak) id<ConversationInputToolbarDelegate> inputToolbarDelegate;
|
|
|
|
- (void)beginEditingTextMessage;
|
|
- (void)endEditingTextMessage;
|
|
|
|
- (void)setInputTextViewDelegate:(id<ConversationInputTextViewDelegate>)value;
|
|
|
|
- (NSString *)messageText;
|
|
- (void)setMessageText:(NSString *_Nullable)value;
|
|
- (void)clearTextMessage;
|
|
|
|
#pragma mark - Voice Memo
|
|
|
|
- (void)showVoiceMemoUI;
|
|
|
|
- (void)hideVoiceMemoUI:(BOOL)animated;
|
|
|
|
- (void)setVoiceMemoUICancelAlpha:(CGFloat)cancelAlpha;
|
|
|
|
- (void)cancelVoiceMemoIfNecessary;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|