One Logo Pool Ball
GameController · IOS API REFERENCE

GCController

class · iOS 7.0+ · SDK 27.1

class GCController

Members (25)

static · iOS 13.0+

withExtendedGamepad

TypeScript
static withExtendedGamepad(): GCController
Swift declaration
class func withExtendedGamepad() -> GCController
static · iOS 13.0+

withMicroGamepad

TypeScript
static withMicroGamepad(): GCController
Swift declaration
class func withMicroGamepad() -> GCController
static · iOS 7.0+

controllers

TypeScript
static controllers(): Array<GCController>
Swift declaration
class func controllers() -> [GCController]
static · iOS 7.0+

startWirelessControllerDiscovery

TypeScript
static startWirelessControllerDiscovery(completionHandler?: ((() => void)) | null): void
Swift declaration
class func startWirelessControllerDiscovery() async
static · iOS 7.0+

stopWirelessControllerDiscovery

TypeScript
static stopWirelessControllerDiscovery(): void
Swift declaration
class func stopWirelessControllerDiscovery()
get · iOS 14.0+

current

TypeScript
static get current(): (GCController) | null
Swift declaration
class var current: GCController? { get }
get · iOS 14.5+

shouldMonitorBackgroundEvents

TypeScript
static get shouldMonitorBackgroundEvents(): boolean
Swift declaration
class var shouldMonitorBackgroundEvents: Bool { get set }
set · iOS 14.5+

shouldMonitorBackgroundEvents

TypeScript
static set shouldMonitorBackgroundEvents(value: boolean)
Swift declaration
class var shouldMonitorBackgroundEvents: Bool { get set }
method · iOS 13.0+

capture

TypeScript
capture(): GCController
Swift declaration
func capture() -> GCController
init

init

TypeScript
static init(): GCController
Swift declaration
init()
get · iOS 7.0+

isAttachedToDevice

TypeScript
get isAttachedToDevice(): boolean
Swift declaration
var isAttachedToDevice: Bool { get }
get · iOS 14.0+

battery

TypeScript
get battery(): (GCDeviceBattery) | null
Swift declaration
@NSCopying var battery: GCDeviceBattery? { get }
get · iOS 7.0+ · Deprecated in iOS 13.0

controllerPausedHandler

TypeScript
get controllerPausedHandler(): (((arg0: GCController) => Promise<void>)) | null
Swift declaration
var controllerPausedHandler: ((GCController) -> Void)? { get set }
set · iOS 7.0+ · Deprecated in iOS 13.0

controllerPausedHandler

TypeScript
set controllerPausedHandler(value: (((arg0: GCController) => void)) | null)
Swift declaration
var controllerPausedHandler: ((GCController) -> Void)? { get set }
get · iOS 7.0+

extendedGamepad

TypeScript
get extendedGamepad(): (GCExtendedGamepad) | null
Swift declaration
var extendedGamepad: GCExtendedGamepad? { get }
get · iOS 7.0+ · Deprecated in iOS 10.0

gamepad

TypeScript
get gamepad(): (GCGamepad) | null
Swift declaration
var gamepad: GCGamepad? { get }
get · iOS 14.0+

haptics

TypeScript
get haptics(): (GCDeviceHaptics) | null
Swift declaration
var haptics: GCDeviceHaptics? { get }
get · iOS 17.0+

input

TypeScript
get input(): GCControllerLiveInput
Swift declaration
var input: GCControllerLiveInput { get }
get · iOS 14.0+

light

TypeScript
get light(): (GCDeviceLight) | null
Swift declaration
var light: GCDeviceLight? { get }
get · iOS 10.0+

microGamepad

TypeScript
get microGamepad(): (GCMicroGamepad) | null
Swift declaration
var microGamepad: GCMicroGamepad? { get }
get · iOS 8.0+

motion

TypeScript
get motion(): (GCMotion) | null
Swift declaration
var motion: GCMotion? { get }
get · iOS 14.0+

physicalInputProfile

TypeScript
get physicalInputProfile(): GCPhysicalInputProfile
Swift declaration
var physicalInputProfile: GCPhysicalInputProfile { get }
get · iOS 7.0+

playerIndex

TypeScript
get playerIndex(): GCControllerPlayerIndex
Swift declaration
var playerIndex: GCControllerPlayerIndex { get set }
set · iOS 7.0+

playerIndex

TypeScript
set playerIndex(value: GCControllerPlayerIndex)
Swift declaration
var playerIndex: GCControllerPlayerIndex { get set }
get · iOS 13.0+

isSnapshot

TypeScript
get isSnapshot(): boolean
Swift declaration
var isSnapshot: Bool { get }

Skipped declarations

No declarations were skipped in this snapshot.

All GameController types →