UniversalLink: Improve group and contact presentation behaviour.

This commit is contained in:
SBiOSoftWhare
2021-10-20 15:55:46 +02:00
parent abdb883a6f
commit 08c34c37d9
4 changed files with 34 additions and 16 deletions
+8 -3
View File
@@ -44,6 +44,7 @@ typedef NS_ENUM(NSUInteger, MasterTabBarIndex) {
@protocol MasterTabBarControllerDelegate;
@class RoomPresentationParameters;
@class RoomPreviewPresentationParameters;
@class UniversalLinkPresentationParameters;
@interface MasterTabBarController : UITabBarController
@@ -96,14 +97,18 @@ typedef NS_ENUM(NSUInteger, MasterTabBarIndex) {
*/
- (void)selectContact:(MXKContact*)contact;
- (void)selectContact:(MXKContact*)contact withPresentationParameters:(UniversalLinkPresentationParameters*)presentationParameters;
/**
Open a GroupDetailsViewController to display the information of the provided group.
@param group
@param group Selected community.
@param matrixSession the matrix session in which the group should be available.
*/
- (void)selectGroup:(MXGroup*)group inMatrixSession:(MXSession*)matrixSession;
- (void)selectGroup:(MXGroup*)group inMatrixSession:(MXSession*)matrixSession presentationParameters:(UniversalLinkPresentationParameters*)presentationParameters;
/**
Release the current selected item (if any).
*/
@@ -189,7 +194,7 @@ typedef NS_ENUM(NSUInteger, MasterTabBarIndex) {
- (void)masterTabBarController:(MasterTabBarController *)masterTabBarController didSelectRoomWithParameters:(RoomPresentationParameters*)roomPresentationParameters completion:(void (^)(void))completion;
- (void)masterTabBarController:(MasterTabBarController *)masterTabBarController didSelectRoomPreviewWithParameters:(RoomPreviewPresentationParameters*)roomPreviewPresentationParameters completion:(void (^)(void))completion;
- (void)masterTabBarController:(MasterTabBarController *)masterTabBarController didSelectContact:(MXKContact*)contact;
- (void)masterTabBarController:(MasterTabBarController *)masterTabBarController didSelectGroup:(MXGroup*)group inMatrixSession:(MXSession*)matrixSession;
- (void)masterTabBarController:(MasterTabBarController *)masterTabBarController didSelectContact:(MXKContact*)contact withPresentationParameters:(UniversalLinkPresentationParameters*)presentationParameters;
- (void)masterTabBarController:(MasterTabBarController *)masterTabBarController didSelectGroup:(MXGroup*)group inMatrixSession:(MXSession*)matrixSession presentationParameters:(UniversalLinkPresentationParameters*)presentationParameters;
@end