Introduce RoomDisplayConfiguration for room display options

This commit is contained in:
ismailgulek
2021-11-10 18:03:02 +03:00
parent 3f9907db93
commit b299f4d587
7 changed files with 158 additions and 10 deletions
+9 -1
View File
@@ -30,6 +30,7 @@
@class BadgeLabel;
@class UniversalLinkParameters;
@protocol RoomViewControllerDelegate;
@class RoomDisplayConfiguration;
NS_ASSUME_NONNULL_BEGIN
@@ -72,6 +73,11 @@ extern NSNotificationName const RoomGroupCallTileTappedNotification;
*/
@property (nonatomic, readonly, nullable) RoomPreviewData *roomPreviewData;
/**
Display configuration for the room view controller.
*/
@property (nonatomic, readonly) RoomDisplayConfiguration *displayConfiguration;
/**
Tell whether a badge must be added next to the chevron (back button) showing number of unread rooms.
YES by default.
@@ -97,9 +103,11 @@ extern NSNotificationName const RoomGroupCallTileTappedNotification;
/**
Creates and returns a new `RoomViewController` object.
@param configuration display configuration for the room view controller.
@return An initialized `RoomViewController` object.
*/
+ (instancetype)instantiate;
+ (instancetype)instantiateWithConfiguration:(RoomDisplayConfiguration *)configuration;
@end