mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 08:12:40 +00:00
0e224ec968
Connected AppDelegate to this method
51 lines
1.6 KiB
Objective-C
51 lines
1.6 KiB
Objective-C
/*
|
|
Copyright 2014 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 "RoomTitleView.h"
|
|
|
|
#import "RoomPreviewData.h"
|
|
|
|
#import "UIViewController+VectorSearch.h"
|
|
|
|
@interface RoomViewController : MXKRoomViewController <UISearchBarDelegate, UIGestureRecognizerDelegate, RoomTitleViewTapGestureDelegate>
|
|
|
|
// The expanded header
|
|
@property (weak, nonatomic) IBOutlet UIView *expandedHeaderContainer;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *expandedHeaderContainerHeightConstraint;
|
|
|
|
// The preview header
|
|
@property (weak, nonatomic) IBOutlet UIView *previewHeaderContainer;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *previewHeaderContainerHeightConstraint;
|
|
|
|
/**
|
|
Show/Hide the expanded header.
|
|
By default this header is hidden on new instantiated RoomViewController object.
|
|
*/
|
|
- (void)showExpandedHeader:(BOOL)isVisible;
|
|
|
|
/**
|
|
Display the preview of a room that is unknown for the user.
|
|
|
|
This room can come from an email invitation link or a simple link to a room.
|
|
|
|
@param roomPreviewData the data for the room preview.
|
|
*/
|
|
- (void)displayRoomPreview:(RoomPreviewData*)previewData;
|
|
|
|
@end
|
|
|