Starts browsing for nearby controllers.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- Game Controller
A block to be called when browsing ends.
You should include a user interface in your game to allow the player to determine when controllers are discovered. When the user chooses to search for controllers, call this method. The device searches asynchronously for discoverable wireless controllers as well as controllers that are connected to iOS devices that have been placed in controller-forwarding mode. Whenever a new controller is connected, a
GCController notification is posted. When no more devices can be found or the discovery process times out, the completion handler is called.
If this method is called multiple times, only the block associated with the last invocation is called when discovery times out.