Post

Replies

Boosts

Views

Activity

Reply to GCDeviceBattery Charging State
Hi, once you got your controller connected, you can get the battery level like this: @objc private func controllerDidConnect(notification: Notification) { 				guard let controller = notification.object as? GCController else { 						fatalError("Invalid notification object.") 				} 				var batteryLevel = Float(controller.battery?.batteryLevel ?? 0.0) }
Jul ’20