Directory Server Picker: Add a completion block to report the selected server

This commit is contained in:
manuroe
2017-04-07 12:45:14 +02:00
parent 695568e34c
commit ee0fdc5138
2 changed files with 34 additions and 9 deletions
@@ -26,8 +26,12 @@
Display data managed by the passed `MXKDirectoryServersDataSource`.
@param dataSource the data source serving the data.
@param onComplete a block called when the picker disappears. It provides either the selected
protocol instance or a new homeserver URL.
Both nil means the user cancelled the picker.
*/
- (void)displayWitDataSource:(MXKDirectoryServersDataSource*)dataSource;
- (void)displayWithDataSource:(MXKDirectoryServersDataSource*)dataSource
onComplete:(void (^)(MXThirdPartyProtocolInstance *thirdpartyProtocolInstance, NSString *homeserver))onComplete;
@end