I'm trying to read the GCController.controllers()
array after my app has launched to know which controllers were already connected to the AppleTV at app launch. But GCController.controllers().count
is 0 until some point after viewDidAppear
gets called on my initial UIViewController. Does anyone know the definitive point by which you can check GCController.controllers()
to know that it has been populated with the currently connected controllers?
I am aware of the need to register for controller connection notifications with;
NSNotificationCenter.defaultCenter().addObserver(self, selector: "handleControllerDidConnectNotification:" , name: GCControllerDidConnectNotification , object: nil)
But that is for later after launch. First I need to know which ones are already connected. Anyone know?