UsersDeviceViewController: Add an onComplete param to the displayUsersDevices method

This commit is contained in:
manuroe
2017-03-15 15:54:50 +01:00
parent a00f06623f
commit f6779982dd
3 changed files with 21 additions and 3 deletions
@@ -25,8 +25,13 @@
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;
- (void)displayUsersDevices:(MXUsersDevicesMap<MXDeviceInfo*>*)usersDevices andMatrixSession:(MXSession*)mxSession onComplete:(void (^)(BOOL doneButtonPressed))onComplete;
@property (weak, nonatomic) IBOutlet UITableView *tableView;