Added long press to remove/unpair host

This commit is contained in:
Diego Waxemberg
2015-01-01 23:25:09 -05:00
parent 3eee684961
commit 417f1e02bc
5 changed files with 32 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
- (void) startDiscovery;
- (void) stopDiscovery;
- (void) addHostToDiscovery:(Host*)host;
- (void) removeHostFromDiscovery:(Host*)host;
- (void) discoverHost:(NSString*)hostAddress withCallback:(void (^)(Host*))callback;
@end

View File

@@ -130,6 +130,10 @@
[_hostQueue addObject:host];
}
- (void) removeHostFromDiscovery:(Host *)host {
[_hostQueue removeObject:host];
}
- (void)updateHosts:(NSArray *)hosts {
[_hostQueue addObjectsFromArray:hosts];
}