2015-08-18 08:04:30 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <MatrixKit/MatrixKit.h>
|
|
|
|
|
|
|
|
#import "MediaPickerViewController.h"
|
|
|
|
|
2018-05-24 09:56:33 +00:00
|
|
|
@protocol RoomInputToolbarViewDelegate <MXKRoomInputToolbarViewDelegate>
|
|
|
|
|
|
|
|
/**
|
|
|
|
Tells the delegate that the user wants to display the sticker picker.
|
|
|
|
|
|
|
|
@param toolbarView the room input toolbar view.
|
|
|
|
*/
|
|
|
|
- (void)roomInputToolbarViewPresentStickerPicker:(MXKRoomInputToolbarView*)toolbarView;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-08-18 08:04:30 +00:00
|
|
|
/**
|
|
|
|
`RoomInputToolbarView` instance is a view used to handle all kinds of available inputs
|
|
|
|
for a room (message composer, attachments selection...).
|
|
|
|
*/
|
|
|
|
@interface RoomInputToolbarView : MXKRoomInputToolbarViewWithHPGrowingText <MediaPickerViewControllerDelegate>
|
|
|
|
|
2018-05-24 09:56:33 +00:00
|
|
|
/**
|
|
|
|
The delegate notified when inputs are ready.
|
|
|
|
*/
|
|
|
|
@property (nonatomic) id<RoomInputToolbarViewDelegate> delegate;
|
|
|
|
|
2015-08-25 16:36:27 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *mainToolbarView;
|
2015-12-16 21:36:14 +00:00
|
|
|
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *separatorView;
|
|
|
|
@property (strong, nonatomic) IBOutlet MXKImageView *pictureView;
|
|
|
|
|
2016-11-07 10:36:32 +00:00
|
|
|
@property (strong, nonatomic) IBOutlet UIImageView *encryptedRoomIcon;
|
|
|
|
|
2015-12-16 21:36:14 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *mainToolbarMinHeightConstraint;
|
2015-08-25 16:36:27 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *mainToolbarHeightConstraint;
|
|
|
|
|
2016-11-07 10:36:32 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *messageComposerContainerLeadingConstraint;
|
2015-08-25 13:42:19 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *messageComposerContainerTrailingConstraint;
|
|
|
|
|
2015-08-18 08:51:28 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *attachMediaButton;
|
2015-12-04 15:06:11 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *voiceCallButton;
|
2016-08-09 10:24:58 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *hangupCallButton;
|
2015-08-18 08:04:30 +00:00
|
|
|
|
2016-03-11 13:45:06 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *voiceCallButtonWidthConstraint;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Tell whether the call option is supported. YES by default.
|
|
|
|
*/
|
|
|
|
@property (nonatomic) BOOL supportCallOption;
|
|
|
|
|
2016-11-07 10:36:32 +00:00
|
|
|
/**
|
2016-11-09 09:58:11 +00:00
|
|
|
Tell whether the filled data will be sent encrypted. NO by default.
|
2016-11-07 10:36:32 +00:00
|
|
|
*/
|
2016-11-09 09:58:11 +00:00
|
|
|
@property (nonatomic) BOOL isEncryptionEnabled;
|
2016-11-07 10:36:32 +00:00
|
|
|
|
2018-07-23 14:54:23 +00:00
|
|
|
/**
|
|
|
|
Tell whether the input text will be a reply to a message.
|
|
|
|
*/
|
|
|
|
@property (nonatomic, getter=isReplyToEnabled) BOOL replyToEnabled;
|
|
|
|
|
2016-08-09 10:24:58 +00:00
|
|
|
/**
|
|
|
|
Tell whether a call is active.
|
|
|
|
*/
|
|
|
|
@property (nonatomic) BOOL activeCall;
|
|
|
|
|
2015-08-18 08:04:30 +00:00
|
|
|
@end
|