30 lines
1.0 KiB
Objective-C
30 lines
1.0 KiB
Objective-C
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2017 Vector Creations Ltd
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
#import "MatrixKit.h"
|
|
|
|
#import "DeviceTableViewCell.h"
|
|
|
|
@interface UsersDevicesViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource, DeviceTableViewCellDelegate>
|
|
|
|
/**
|
|
Display a map of users/devices.
|
|
|
|
@param usersDevices the map to display.
|
|
@param mxSession the Matrix session.
|
|
@param onComplete a block called when the user quits the screen
|
|
doneButtonPressed is:
|
|
- YES if the user clicked the Done button, meaning he acknowledges all unknown devices.
|
|
- NO if the user clicked the Cancel button, meaning he prefers to cancel the current request.
|
|
*/
|
|
- (void)displayUsersDevices:(MXUsersDevicesMap<MXDeviceInfo*>*)usersDevices andMatrixSession:(MXSession*)mxSession onComplete:(void (^)(BOOL doneButtonPressed))onComplete;
|
|
|
|
@property (weak, nonatomic) IBOutlet UITableView *tableView;
|
|
|
|
@end
|