Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.
Functions and constants
function · iOS 7.0+ · Deprecated in iOS 13.0GCExtendedGamepadSnapShotDataV100FromNSData
TypeScriptGCExtendedGamepadSnapShotDataV100FromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declarationfunc GCExtendedGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
function · iOS 13.0+ · Deprecated in iOS 13.0GCExtendedGamepadSnapshotDataFromNSData
TypeScriptGCExtendedGamepadSnapshotDataFromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declarationfunc GCExtendedGamepadSnapshotDataFromNSData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapshotData>?, _ data: Data?) -> Bool
function · iOS 7.0+ · Deprecated in iOS 13.0GCGamepadSnapShotDataV100FromNSData
TypeScriptGCGamepadSnapShotDataV100FromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declarationfunc GCGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
function · iOS 9.0+ · Deprecated in iOS 13.0GCMicroGamepadSnapShotDataV100FromNSData
TypeScriptGCMicroGamepadSnapShotDataV100FromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declarationfunc GCMicroGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
function · iOS 13.0+ · Deprecated in iOS 13.0GCMicroGamepadSnapshotDataFromNSData
TypeScriptGCMicroGamepadSnapshotDataFromNSData(snapshotData?: (SDKHandle) | null, data?: (ArrayBuffer) | null): boolean
Swift declarationfunc GCMicroGamepadSnapshotDataFromNSData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapshotData>?, _ data: Data?) -> Bool
function · iOS 17.4+GCPoint2Equal
TypeScriptGCPoint2Equal(point1: GCPoint2, point2: GCPoint2): boolean
Swift declarationfunc GCPoint2Equal(_ point1: GCPoint2, _ point2: GCPoint2) -> Bool
function · iOS 17.4+GCPoint2Make
TypeScriptGCPoint2Make(x: number, y: number): GCPoint2
Swift declarationfunc GCPoint2Make(_ x: Float, _ y: Float) -> GCPoint2
function · iOS 7.0+ · Deprecated in iOS 13.0NSDataFromGCExtendedGamepadSnapShotDataV100
TypeScriptNSDataFromGCExtendedGamepadSnapShotDataV100(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declarationfunc NSDataFromGCExtendedGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?) -> Data?
function · iOS 13.0+ · Deprecated in iOS 13.0NSDataFromGCExtendedGamepadSnapshotData
TypeScriptNSDataFromGCExtendedGamepadSnapshotData(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declarationfunc NSDataFromGCExtendedGamepadSnapshotData(_ snapshotData: UnsafeMutablePointer<GCExtendedGamepadSnapshotData>?) -> Data?
function · iOS 7.0+ · Deprecated in iOS 13.0NSDataFromGCGamepadSnapShotDataV100
TypeScriptNSDataFromGCGamepadSnapShotDataV100(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declarationfunc NSDataFromGCGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?) -> Data?
function · iOS 9.0+ · Deprecated in iOS 13.0NSDataFromGCMicroGamepadSnapShotDataV100
TypeScriptNSDataFromGCMicroGamepadSnapShotDataV100(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declarationfunc NSDataFromGCMicroGamepadSnapShotDataV100(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapShotDataV100>?) -> Data?
function · iOS 13.0+ · Deprecated in iOS 13.0NSDataFromGCMicroGamepadSnapshotData
TypeScriptNSDataFromGCMicroGamepadSnapshotData(snapshotData?: (SDKHandle) | null): (ArrayBuffer) | null
Swift declarationfunc NSDataFromGCMicroGamepadSnapshotData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapshotData>?) -> Data?
function · iOS 17.4+NSStringFromGCPoint2
TypeScriptNSStringFromGCPoint2(point: GCPoint2): string
Swift declarationfunc NSStringFromGCPoint2(_ point: GCPoint2) -> String
get · iOS 14.0+GCControllerDidBecomeCurrent
TypeScriptget GCControllerDidBecomeCurrent(): _Foundation_NSNotification_Name
Swift declarationstatic let GCControllerDidBecomeCurrent: NSNotification.Name
get · iOS 7.0+GCControllerDidConnect
TypeScriptget GCControllerDidConnect(): _Foundation_NSNotification_Name
Swift declarationstatic let GCControllerDidConnect: NSNotification.Name
get · iOS 7.0+GCControllerDidDisconnect
TypeScriptget GCControllerDidDisconnect(): _Foundation_NSNotification_Name
Swift declarationstatic let GCControllerDidDisconnect: NSNotification.Name
get · iOS 14.0+GCControllerDidStopBeingCurrent
TypeScriptget GCControllerDidStopBeingCurrent(): _Foundation_NSNotification_Name
Swift declarationstatic let GCControllerDidStopBeingCurrent: NSNotification.Name
get · iOS 16.0+GCControllerUserCustomizationsDidChange
TypeScriptget GCControllerUserCustomizationsDidChange(): _Foundation_NSNotification_Name
Swift declarationstatic let GCControllerUserCustomizationsDidChange: NSNotification.Name
get · iOS 9.0+ · Deprecated in iOS 13.0GCCurrentExtendedGamepadSnapshotDataVersion
TypeScriptconst GCCurrentExtendedGamepadSnapshotDataVersion: GCExtendedGamepadSnapshotDataVersion
Swift declarationlet GCCurrentExtendedGamepadSnapshotDataVersion: GCExtendedGamepadSnapshotDataVersion
get · iOS 13.0+ · Deprecated in iOS 13.0GCCurrentMicroGamepadSnapshotDataVersion
TypeScriptconst GCCurrentMicroGamepadSnapshotDataVersion: GCMicroGamepadSnapshotDataVersion
Swift declarationlet GCCurrentMicroGamepadSnapshotDataVersion: GCMicroGamepadSnapshotDataVersion
get · iOS 14.0+GCHapticDurationInfinite
TypeScriptconst GCHapticDurationInfinite: number
Swift declarationlet GCHapticDurationInfinite: Float
get · iOS 14.5+GCInputDirectionalCardinalDpad
TypeScriptconst GCInputDirectionalCardinalDpad: string
Swift declarationlet GCInputDirectionalCardinalDpad: String
get · iOS 15.0+GCInputDirectionalCenterButton
TypeScriptconst GCInputDirectionalCenterButton: string
Swift declarationlet GCInputDirectionalCenterButton: String
get · iOS 14.5+GCInputDirectionalDpad
TypeScriptconst GCInputDirectionalDpad: string
Swift declarationlet GCInputDirectionalDpad: String
get · iOS 15.0+GCInputDirectionalTouchSurfaceButton
TypeScriptconst GCInputDirectionalTouchSurfaceButton: string
Swift declarationlet GCInputDirectionalTouchSurfaceButton: String
get · iOS 15.0+GCInputMicroGamepadButtonA
TypeScriptconst GCInputMicroGamepadButtonA: string
Swift declarationlet GCInputMicroGamepadButtonA: String
get · iOS 15.0+GCInputMicroGamepadButtonMenu
TypeScriptconst GCInputMicroGamepadButtonMenu: string
Swift declarationlet GCInputMicroGamepadButtonMenu: String
get · iOS 15.0+GCInputMicroGamepadButtonX
TypeScriptconst GCInputMicroGamepadButtonX: string
Swift declarationlet GCInputMicroGamepadButtonX: String
get · iOS 15.0+GCInputMicroGamepadDpad
TypeScriptconst GCInputMicroGamepadDpad: string
Swift declarationlet GCInputMicroGamepadDpad: String
get · iOS 14.0+GCKeyA
TypeScriptconst GCKeyA: string
Swift declarationlet GCKeyA: String
get · iOS 14.0+GCKeyApplication
TypeScriptconst GCKeyApplication: string
Swift declarationlet GCKeyApplication: String
get · iOS 14.0+GCKeyB
TypeScriptconst GCKeyB: string
Swift declarationlet GCKeyB: String
get · iOS 14.0+GCKeyBackslash
TypeScriptconst GCKeyBackslash: string
Swift declarationlet GCKeyBackslash: String
get · iOS 14.0+GCKeyC
TypeScriptconst GCKeyC: string
Swift declarationlet GCKeyC: String
get · iOS 14.0+GCKeyCapsLock
TypeScriptconst GCKeyCapsLock: string
Swift declarationlet GCKeyCapsLock: String
get · iOS 14.0+GCKeyCloseBracket
TypeScriptconst GCKeyCloseBracket: string
Swift declarationlet GCKeyCloseBracket: String
get · iOS 14.0+GCKeyComma
TypeScriptconst GCKeyComma: string
Swift declarationlet GCKeyComma: String
get · iOS 14.0+GCKeyD
TypeScriptconst GCKeyD: string
Swift declarationlet GCKeyD: String
get · iOS 14.0+GCKeyDeleteForward
TypeScriptconst GCKeyDeleteForward: string
Swift declarationlet GCKeyDeleteForward: String
get · iOS 14.0+GCKeyDeleteOrBackspace
TypeScriptconst GCKeyDeleteOrBackspace: string
Swift declarationlet GCKeyDeleteOrBackspace: String
get · iOS 14.0+GCKeyDownArrow
TypeScriptconst GCKeyDownArrow: string
Swift declarationlet GCKeyDownArrow: String
get · iOS 14.0+GCKeyE
TypeScriptconst GCKeyE: string
Swift declarationlet GCKeyE: String
get · iOS 14.0+GCKeyEight
TypeScriptconst GCKeyEight: string
Swift declarationlet GCKeyEight: String
get · iOS 14.0+GCKeyEnd
TypeScriptconst GCKeyEnd: string
Swift declarationlet GCKeyEnd: String
get · iOS 14.0+GCKeyEqualSign
TypeScriptconst GCKeyEqualSign: string
Swift declarationlet GCKeyEqualSign: String
get · iOS 14.0+GCKeyEscape
TypeScriptconst GCKeyEscape: string
Swift declarationlet GCKeyEscape: String
get · iOS 14.0+GCKeyF10
TypeScriptconst GCKeyF10: string
Swift declarationlet GCKeyF10: String
get · iOS 14.0+GCKeyF11
TypeScriptconst GCKeyF11: string
Swift declarationlet GCKeyF11: String
get · iOS 14.0+GCKeyF12
TypeScriptconst GCKeyF12: string
Swift declarationlet GCKeyF12: String
get · iOS 15.0+GCKeyF13
TypeScriptconst GCKeyF13: string
Swift declarationlet GCKeyF13: String
get · iOS 15.0+GCKeyF14
TypeScriptconst GCKeyF14: string
Swift declarationlet GCKeyF14: String
get · iOS 15.0+GCKeyF15
TypeScriptconst GCKeyF15: string
Swift declarationlet GCKeyF15: String
get · iOS 15.0+GCKeyF16
TypeScriptconst GCKeyF16: string
Swift declarationlet GCKeyF16: String
get · iOS 15.0+GCKeyF17
TypeScriptconst GCKeyF17: string
Swift declarationlet GCKeyF17: String
get · iOS 15.0+GCKeyF18
TypeScriptconst GCKeyF18: string
Swift declarationlet GCKeyF18: String
get · iOS 15.0+GCKeyF19
TypeScriptconst GCKeyF19: string
Swift declarationlet GCKeyF19: String
get · iOS 14.0+GCKeyF1
TypeScriptconst GCKeyF1: string
Swift declarationlet GCKeyF1: String
get · iOS 15.0+GCKeyF20
TypeScriptconst GCKeyF20: string
Swift declarationlet GCKeyF20: String
get · iOS 14.0+GCKeyF2
TypeScriptconst GCKeyF2: string
Swift declarationlet GCKeyF2: String
get · iOS 14.0+GCKeyF3
TypeScriptconst GCKeyF3: string
Swift declarationlet GCKeyF3: String
get · iOS 14.0+GCKeyF4
TypeScriptconst GCKeyF4: string
Swift declarationlet GCKeyF4: String
get · iOS 14.0+GCKeyF5
TypeScriptconst GCKeyF5: string
Swift declarationlet GCKeyF5: String
get · iOS 14.0+GCKeyF6
TypeScriptconst GCKeyF6: string
Swift declarationlet GCKeyF6: String
get · iOS 14.0+GCKeyF7
TypeScriptconst GCKeyF7: string
Swift declarationlet GCKeyF7: String
get · iOS 14.0+GCKeyF8
TypeScriptconst GCKeyF8: string
Swift declarationlet GCKeyF8: String
get · iOS 14.0+GCKeyF9
TypeScriptconst GCKeyF9: string
Swift declarationlet GCKeyF9: String
get · iOS 14.0+GCKeyF
TypeScriptconst GCKeyF: string
Swift declarationlet GCKeyF: String
get · iOS 14.0+GCKeyFive
TypeScriptconst GCKeyFive: string
Swift declarationlet GCKeyFive: String
get · iOS 14.0+GCKeyFour
TypeScriptconst GCKeyFour: string
Swift declarationlet GCKeyFour: String
get · iOS 14.0+GCKeyG
TypeScriptconst GCKeyG: string
Swift declarationlet GCKeyG: String
get · iOS 14.0+GCKeyGraveAccentAndTilde
TypeScriptconst GCKeyGraveAccentAndTilde: string
Swift declarationlet GCKeyGraveAccentAndTilde: String
get · iOS 14.0+GCKeyH
TypeScriptconst GCKeyH: string
Swift declarationlet GCKeyH: String
get · iOS 14.0+GCKeyHome
TypeScriptconst GCKeyHome: string
Swift declarationlet GCKeyHome: String
get · iOS 14.0+GCKeyHyphen
TypeScriptconst GCKeyHyphen: string
Swift declarationlet GCKeyHyphen: String
get · iOS 14.0+GCKeyI
TypeScriptconst GCKeyI: string
Swift declarationlet GCKeyI: String
get · iOS 14.0+GCKeyInsert
TypeScriptconst GCKeyInsert: string
Swift declarationlet GCKeyInsert: String
get · iOS 14.0+GCKeyInternational1
TypeScriptconst GCKeyInternational1: string
Swift declarationlet GCKeyInternational1: String
get · iOS 14.0+GCKeyInternational2
TypeScriptconst GCKeyInternational2: string
Swift declarationlet GCKeyInternational2: String
get · iOS 14.0+GCKeyInternational3
TypeScriptconst GCKeyInternational3: string
Swift declarationlet GCKeyInternational3: String
get · iOS 14.0+GCKeyInternational4
TypeScriptconst GCKeyInternational4: string
Swift declarationlet GCKeyInternational4: String
get · iOS 14.0+GCKeyInternational5
TypeScriptconst GCKeyInternational5: string
Swift declarationlet GCKeyInternational5: String
get · iOS 14.0+GCKeyInternational6
TypeScriptconst GCKeyInternational6: string
Swift declarationlet GCKeyInternational6: String
get · iOS 14.0+GCKeyInternational7
TypeScriptconst GCKeyInternational7: string
Swift declarationlet GCKeyInternational7: String
get · iOS 14.0+GCKeyInternational8
TypeScriptconst GCKeyInternational8: string
Swift declarationlet GCKeyInternational8: String
get · iOS 14.0+GCKeyInternational9
TypeScriptconst GCKeyInternational9: string
Swift declarationlet GCKeyInternational9: String
get · iOS 14.0+GCKeyJ
TypeScriptconst GCKeyJ: string
Swift declarationlet GCKeyJ: String
get · iOS 14.0+GCKeyK
TypeScriptconst GCKeyK: string
Swift declarationlet GCKeyK: String
get · iOS 14.0+GCKeyKeypad0
TypeScriptconst GCKeyKeypad0: string
Swift declarationlet GCKeyKeypad0: String
get · iOS 14.0+GCKeyKeypad1
TypeScriptconst GCKeyKeypad1: string
Swift declarationlet GCKeyKeypad1: String
get · iOS 14.0+GCKeyKeypad2
TypeScriptconst GCKeyKeypad2: string
Swift declarationlet GCKeyKeypad2: String
get · iOS 14.0+GCKeyKeypad3
TypeScriptconst GCKeyKeypad3: string
Swift declarationlet GCKeyKeypad3: String
get · iOS 14.0+GCKeyKeypad4
TypeScriptconst GCKeyKeypad4: string
Swift declarationlet GCKeyKeypad4: String
get · iOS 14.0+GCKeyKeypad5
TypeScriptconst GCKeyKeypad5: string
Swift declarationlet GCKeyKeypad5: String
get · iOS 14.0+GCKeyKeypad6
TypeScriptconst GCKeyKeypad6: string
Swift declarationlet GCKeyKeypad6: String
get · iOS 14.0+GCKeyKeypad7
TypeScriptconst GCKeyKeypad7: string
Swift declarationlet GCKeyKeypad7: String
get · iOS 14.0+GCKeyKeypad8
TypeScriptconst GCKeyKeypad8: string
Swift declarationlet GCKeyKeypad8: String
get · iOS 14.0+GCKeyKeypad9
TypeScriptconst GCKeyKeypad9: string
Swift declarationlet GCKeyKeypad9: String
get · iOS 14.0+GCKeyKeypadAsterisk
TypeScriptconst GCKeyKeypadAsterisk: string
Swift declarationlet GCKeyKeypadAsterisk: String
get · iOS 14.0+GCKeyKeypadEnter
TypeScriptconst GCKeyKeypadEnter: string
Swift declarationlet GCKeyKeypadEnter: String
get · iOS 14.0+GCKeyKeypadEqualSign
TypeScriptconst GCKeyKeypadEqualSign: string
Swift declarationlet GCKeyKeypadEqualSign: String
get · iOS 14.0+GCKeyKeypadHyphen
TypeScriptconst GCKeyKeypadHyphen: string
Swift declarationlet GCKeyKeypadHyphen: String
get · iOS 14.0+GCKeyKeypadNumLock
TypeScriptconst GCKeyKeypadNumLock: string
Swift declarationlet GCKeyKeypadNumLock: String
get · iOS 14.0+GCKeyKeypadPeriod
TypeScriptconst GCKeyKeypadPeriod: string
Swift declarationlet GCKeyKeypadPeriod: String
get · iOS 14.0+GCKeyKeypadPlus
TypeScriptconst GCKeyKeypadPlus: string
Swift declarationlet GCKeyKeypadPlus: String
get · iOS 14.0+GCKeyKeypadSlash
TypeScriptconst GCKeyKeypadSlash: string
Swift declarationlet GCKeyKeypadSlash: String
get · iOS 14.0+GCKeyL
TypeScriptconst GCKeyL: string
Swift declarationlet GCKeyL: String
get · iOS 14.0+GCKeyLANG1
TypeScriptconst GCKeyLANG1: string
Swift declarationlet GCKeyLANG1: String
get · iOS 14.0+GCKeyLANG2
TypeScriptconst GCKeyLANG2: string
Swift declarationlet GCKeyLANG2: String
get · iOS 14.0+GCKeyLANG3
TypeScriptconst GCKeyLANG3: string
Swift declarationlet GCKeyLANG3: String
get · iOS 14.0+GCKeyLANG4
TypeScriptconst GCKeyLANG4: string
Swift declarationlet GCKeyLANG4: String
get · iOS 14.0+GCKeyLANG5
TypeScriptconst GCKeyLANG5: string
Swift declarationlet GCKeyLANG5: String
get · iOS 14.0+GCKeyLANG6
TypeScriptconst GCKeyLANG6: string
Swift declarationlet GCKeyLANG6: String
get · iOS 14.0+GCKeyLANG7
TypeScriptconst GCKeyLANG7: string
Swift declarationlet GCKeyLANG7: String
get · iOS 14.0+GCKeyLANG8
TypeScriptconst GCKeyLANG8: string
Swift declarationlet GCKeyLANG8: String
get · iOS 14.0+GCKeyLANG9
TypeScriptconst GCKeyLANG9: string
Swift declarationlet GCKeyLANG9: String
get · iOS 14.0+GCKeyLeftAlt
TypeScriptconst GCKeyLeftAlt: string
Swift declarationlet GCKeyLeftAlt: String
get · iOS 14.0+GCKeyLeftArrow
TypeScriptconst GCKeyLeftArrow: string
Swift declarationlet GCKeyLeftArrow: String
get · iOS 14.0+GCKeyLeftControl
TypeScriptconst GCKeyLeftControl: string
Swift declarationlet GCKeyLeftControl: String
get · iOS 14.0+GCKeyLeftGUI
TypeScriptconst GCKeyLeftGUI: string
Swift declarationlet GCKeyLeftGUI: String
get · iOS 14.0+GCKeyLeftShift
TypeScriptconst GCKeyLeftShift: string
Swift declarationlet GCKeyLeftShift: String
get · iOS 14.0+GCKeyM
TypeScriptconst GCKeyM: string
Swift declarationlet GCKeyM: String
get · iOS 14.0+GCKeyN
TypeScriptconst GCKeyN: string
Swift declarationlet GCKeyN: String
get · iOS 14.0+GCKeyNine
TypeScriptconst GCKeyNine: string
Swift declarationlet GCKeyNine: String
get · iOS 14.0+GCKeyNonUSBackslash
TypeScriptconst GCKeyNonUSBackslash: string
Swift declarationlet GCKeyNonUSBackslash: String
get · iOS 14.0+GCKeyNonUSPound
TypeScriptconst GCKeyNonUSPound: string
Swift declarationlet GCKeyNonUSPound: String
get · iOS 14.0+GCKeyO
TypeScriptconst GCKeyO: string
Swift declarationlet GCKeyO: String
get · iOS 14.0+GCKeyOne
TypeScriptconst GCKeyOne: string
Swift declarationlet GCKeyOne: String
get · iOS 14.0+GCKeyOpenBracket
TypeScriptconst GCKeyOpenBracket: string
Swift declarationlet GCKeyOpenBracket: String
get · iOS 14.0+GCKeyP
TypeScriptconst GCKeyP: string
Swift declarationlet GCKeyP: String
get · iOS 14.0+GCKeyPageDown
TypeScriptconst GCKeyPageDown: string
Swift declarationlet GCKeyPageDown: String
get · iOS 14.0+GCKeyPageUp
TypeScriptconst GCKeyPageUp: string
Swift declarationlet GCKeyPageUp: String
get · iOS 14.0+GCKeyPause
TypeScriptconst GCKeyPause: string
Swift declarationlet GCKeyPause: String
get · iOS 14.0+GCKeyPeriod
TypeScriptconst GCKeyPeriod: string
Swift declarationlet GCKeyPeriod: String
get · iOS 14.0+GCKeyPower
TypeScriptconst GCKeyPower: string
Swift declarationlet GCKeyPower: String
get · iOS 14.0+GCKeyPrintScreen
TypeScriptconst GCKeyPrintScreen: string
Swift declarationlet GCKeyPrintScreen: String
get · iOS 14.0+GCKeyQ
TypeScriptconst GCKeyQ: string
Swift declarationlet GCKeyQ: String
get · iOS 14.0+GCKeyQuote
TypeScriptconst GCKeyQuote: string
Swift declarationlet GCKeyQuote: String
get · iOS 14.0+GCKeyR
TypeScriptconst GCKeyR: string
Swift declarationlet GCKeyR: String
get · iOS 14.0+GCKeyReturnOrEnter
TypeScriptconst GCKeyReturnOrEnter: string
Swift declarationlet GCKeyReturnOrEnter: String
get · iOS 14.0+GCKeyRightAlt
TypeScriptconst GCKeyRightAlt: string
Swift declarationlet GCKeyRightAlt: String
get · iOS 14.0+GCKeyRightArrow
TypeScriptconst GCKeyRightArrow: string
Swift declarationlet GCKeyRightArrow: String
get · iOS 14.0+GCKeyRightControl
TypeScriptconst GCKeyRightControl: string
Swift declarationlet GCKeyRightControl: String
get · iOS 14.0+GCKeyRightGUI
TypeScriptconst GCKeyRightGUI: string
Swift declarationlet GCKeyRightGUI: String
get · iOS 14.0+GCKeyRightShift
TypeScriptconst GCKeyRightShift: string
Swift declarationlet GCKeyRightShift: String
get · iOS 14.0+GCKeyS
TypeScriptconst GCKeyS: string
Swift declarationlet GCKeyS: String
get · iOS 14.0+GCKeyScrollLock
TypeScriptconst GCKeyScrollLock: string
Swift declarationlet GCKeyScrollLock: String
get · iOS 14.0+GCKeySemicolon
TypeScriptconst GCKeySemicolon: string
Swift declarationlet GCKeySemicolon: String
get · iOS 14.0+GCKeySeven
TypeScriptconst GCKeySeven: string
Swift declarationlet GCKeySeven: String
get · iOS 14.0+GCKeySix
TypeScriptconst GCKeySix: string
Swift declarationlet GCKeySix: String
get · iOS 14.0+GCKeySlash
TypeScriptconst GCKeySlash: string
Swift declarationlet GCKeySlash: String
get · iOS 14.0+GCKeySpacebar
TypeScriptconst GCKeySpacebar: string
Swift declarationlet GCKeySpacebar: String
get · iOS 14.0+GCKeyT
TypeScriptconst GCKeyT: string
Swift declarationlet GCKeyT: String
get · iOS 14.0+GCKeyTab
TypeScriptconst GCKeyTab: string
Swift declarationlet GCKeyTab: String
get · iOS 14.0+GCKeyThree
TypeScriptconst GCKeyThree: string
Swift declarationlet GCKeyThree: String
get · iOS 14.0+GCKeyTwo
TypeScriptconst GCKeyTwo: string
Swift declarationlet GCKeyTwo: String
get · iOS 14.0+GCKeyU
TypeScriptconst GCKeyU: string
Swift declarationlet GCKeyU: String
get · iOS 14.0+GCKeyUpArrow
TypeScriptconst GCKeyUpArrow: string
Swift declarationlet GCKeyUpArrow: String
get · iOS 14.0+GCKeyV
TypeScriptconst GCKeyV: string
Swift declarationlet GCKeyV: String
get · iOS 14.0+GCKeyW
TypeScriptconst GCKeyW: string
Swift declarationlet GCKeyW: String
get · iOS 14.0+GCKeyX
TypeScriptconst GCKeyX: string
Swift declarationlet GCKeyX: String
get · iOS 14.0+GCKeyY
TypeScriptconst GCKeyY: string
Swift declarationlet GCKeyY: String
get · iOS 14.0+GCKeyZ
TypeScriptconst GCKeyZ: string
Swift declarationlet GCKeyZ: String
get · iOS 14.0+GCKeyZero
TypeScriptconst GCKeyZero: string
Swift declarationlet GCKeyZero: String
get · iOS 14.0+GCKeyboardDidConnect
TypeScriptget GCKeyboardDidConnect(): _Foundation_NSNotification_Name
Swift declarationstatic let GCKeyboardDidConnect: NSNotification.Name
get · iOS 14.0+GCKeyboardDidDisconnect
TypeScriptget GCKeyboardDidDisconnect(): _Foundation_NSNotification_Name
Swift declarationstatic let GCKeyboardDidDisconnect: NSNotification.Name
get · iOS 14.0+GCMouseDidBecomeCurrent
TypeScriptget GCMouseDidBecomeCurrent(): _Foundation_NSNotification_Name
Swift declarationstatic let GCMouseDidBecomeCurrent: NSNotification.Name
get · iOS 14.0+GCMouseDidConnect
TypeScriptget GCMouseDidConnect(): _Foundation_NSNotification_Name
Swift declarationstatic let GCMouseDidConnect: NSNotification.Name
get · iOS 14.0+GCMouseDidDisconnect
TypeScriptget GCMouseDidDisconnect(): _Foundation_NSNotification_Name
Swift declarationstatic let GCMouseDidDisconnect: NSNotification.Name
get · iOS 14.0+GCMouseDidStopBeingCurrent
TypeScriptget GCMouseDidStopBeingCurrent(): _Foundation_NSNotification_Name
Swift declarationstatic let GCMouseDidStopBeingCurrent: NSNotification.Name
get · iOS 17.4+GCPoint2Zero
TypeScriptconst GCPoint2Zero: GCPoint2
Swift declarationlet GCPoint2Zero: GCPoint2
get · iOS 17.0+GCProductCategoryArcadeStick
TypeScriptconst GCProductCategoryArcadeStick: string
Swift declarationlet GCProductCategoryArcadeStick: String
get · iOS 15.0+GCProductCategoryCoalescedRemote
TypeScriptconst GCProductCategoryCoalescedRemote: string
Swift declarationlet GCProductCategoryCoalescedRemote: String
get · iOS 15.0+GCProductCategoryControlCenterRemote
TypeScriptconst GCProductCategoryControlCenterRemote: string
Swift declarationlet GCProductCategoryControlCenterRemote: String
get · iOS 15.0+GCProductCategoryDualSense
TypeScriptconst GCProductCategoryDualSense: string
Swift declarationlet GCProductCategoryDualSense: String
get · iOS 15.0+GCProductCategoryDualShock4
TypeScriptconst GCProductCategoryDualShock4: string
Swift declarationlet GCProductCategoryDualShock4: String
get · iOS 16.0+GCProductCategoryHID
TypeScriptconst GCProductCategoryHID: string
Swift declarationlet GCProductCategoryHID: String
get · iOS 15.0+GCProductCategoryKeyboard
TypeScriptconst GCProductCategoryKeyboard: string
Swift declarationlet GCProductCategoryKeyboard: String
get · iOS 15.0+GCProductCategoryMFi
TypeScriptconst GCProductCategoryMFi: string
Swift declarationlet GCProductCategoryMFi: String
get · iOS 15.0+GCProductCategoryMouse
TypeScriptconst GCProductCategoryMouse: string
Swift declarationlet GCProductCategoryMouse: String
get · iOS 15.0+GCProductCategorySiriRemote1stGen
TypeScriptconst GCProductCategorySiriRemote1stGen: string
Swift declarationlet GCProductCategorySiriRemote1stGen: String
get · iOS 15.0+GCProductCategorySiriRemote2ndGen
TypeScriptconst GCProductCategorySiriRemote2ndGen: string
Swift declarationlet GCProductCategorySiriRemote2ndGen: String
get · iOS 26.0+GCProductCategorySpatialController
TypeScriptconst GCProductCategorySpatialController: string
Swift declarationlet GCProductCategorySpatialController: String
get · iOS 15.0+GCProductCategoryUniversalElectronicsRemote
TypeScriptconst GCProductCategoryUniversalElectronicsRemote: string
Swift declarationlet GCProductCategoryUniversalElectronicsRemote: String
get · iOS 15.0+GCProductCategoryXboxOne
TypeScriptconst GCProductCategoryXboxOne: string
Swift declarationlet GCProductCategoryXboxOne: String
getkIOHIDGCSyntheticDeviceKey
TypeScriptconst kIOHIDGCSyntheticDeviceKey: string
Swift declarationvar kIOHIDGCSyntheticDeviceKey: String { get }
init · iOS 17.4+init
TypeScriptstatic init(point: GCPoint2): _Foundation_NSValue
Swift declarationconvenience init(GCPoint2 point: GCPoint2)
get · iOS 17.4+gcPoint2Value
TypeScriptget gcPoint2Value(): GCPoint2
Swift declarationvar gcPoint2Value: GCPoint2 { get }
get · iOS 18.0+gameControllerActivationContext
TypeScriptget gameControllerActivationContext(): Promise<(GCGameControllerActivationContext) | null>
Swift declarationvar gameControllerActivationContext: GCGameControllerActivationContext? { get }
get · iOS 14.0+GCInputButtonA
TypeScriptconst GCInputButtonA: string
Swift declarationvar GCInputButtonA: String { get }
get · iOS 14.0+GCInputButtonB
TypeScriptconst GCInputButtonB: string
Swift declarationvar GCInputButtonB: String { get }
get · iOS 14.0+GCInputButtonX
TypeScriptconst GCInputButtonX: string
Swift declarationvar GCInputButtonX: String { get }
get · iOS 14.0+GCInputButtonY
TypeScriptconst GCInputButtonY: string
Swift declarationvar GCInputButtonY: String { get }
get · iOS 14.0+GCInputButtonHome
TypeScriptconst GCInputButtonHome: string
Swift declarationvar GCInputButtonHome: String { get }
get · iOS 14.0+GCInputButtonMenu
TypeScriptconst GCInputButtonMenu: string
Swift declarationvar GCInputButtonMenu: String { get }
get · iOS 15.0+GCInputButtonShare
TypeScriptconst GCInputButtonShare: string
Swift declarationvar GCInputButtonShare: String { get }
get · iOS 14.0+GCInputLeftTrigger
TypeScriptconst GCInputLeftTrigger: string
Swift declarationvar GCInputLeftTrigger: String { get }
get · iOS 14.0+GCInputDirectionPad
TypeScriptconst GCInputDirectionPad: string
Swift declarationvar GCInputDirectionPad: String { get }
get · iOS 14.0+GCInputLeftShoulder
TypeScriptconst GCInputLeftShoulder: string
Swift declarationvar GCInputLeftShoulder: String { get }
get · iOS 14.0+GCInputRightTrigger
TypeScriptconst GCInputRightTrigger: string
Swift declarationvar GCInputRightTrigger: String { get }
get · iOS 14.0+GCInputButtonOptions
TypeScriptconst GCInputButtonOptions: string
Swift declarationvar GCInputButtonOptions: String { get }
get · iOS 14.0+GCInputRightShoulder
TypeScriptconst GCInputRightShoulder: string
Swift declarationvar GCInputRightShoulder: String { get }
get · iOS 14.0+GCInputXboxPaddleOne
TypeScriptconst GCInputXboxPaddleOne: string
Swift declarationvar GCInputXboxPaddleOne: String { get }
get · iOS 14.0+GCInputXboxPaddleTwo
TypeScriptconst GCInputXboxPaddleTwo: string
Swift declarationvar GCInputXboxPaddleTwo: String { get }
get · iOS 14.0+GCInputLeftThumbstick
TypeScriptconst GCInputLeftThumbstick: string
Swift declarationvar GCInputLeftThumbstick: String { get }
get · iOS 14.0+GCInputXboxPaddleFour
TypeScriptconst GCInputXboxPaddleFour: string
Swift declarationvar GCInputXboxPaddleFour: String { get }
get · iOS 14.0+GCInputRightThumbstick
TypeScriptconst GCInputRightThumbstick: string
Swift declarationvar GCInputRightThumbstick: String { get }
get · iOS 14.0+GCInputXboxPaddleThree
TypeScriptconst GCInputXboxPaddleThree: string
Swift declarationvar GCInputXboxPaddleThree: String { get }
get · iOS 14.0+GCInputDualShockTouchpadOne
TypeScriptconst GCInputDualShockTouchpadOne: string
Swift declarationvar GCInputDualShockTouchpadOne: String { get }
get · iOS 14.0+GCInputDualShockTouchpadTwo
TypeScriptconst GCInputDualShockTouchpadTwo: string
Swift declarationvar GCInputDualShockTouchpadTwo: String { get }
get · iOS 14.0+GCInputLeftThumbstickButton
TypeScriptconst GCInputLeftThumbstickButton: string
Swift declarationvar GCInputLeftThumbstickButton: String { get }
get · iOS 14.0+GCInputRightThumbstickButton
TypeScriptconst GCInputRightThumbstickButton: string
Swift declarationvar GCInputRightThumbstickButton: String { get }
get · iOS 14.0+GCInputDualShockTouchpadButton
TypeScriptconst GCInputDualShockTouchpadButton: string
Swift declarationvar GCInputDualShockTouchpadButton: String { get }
get · iOS 16.0+startIndex
TypeScriptget startIndex(): GCPhysicalInputElementCollection_Index<SDKHandle>
Swift declarationvar startIndex: GCPhysicalInputElementCollection<T>.Index { get }
The position of the first element in a nonempty collection.
If the collection is empty, `startIndex` is equal to `endIndex`.
method · iOS 16.0+index
TypeScriptindex(i: GCPhysicalInputElementCollection_Index<SDKHandle>): GCPhysicalInputElementCollection_Index<SDKHandle>
Swift declarationfunc index(after i: GCPhysicalInputElementCollection<T>.Index) -> GCPhysicalInputElementCollection<T>.Index
Returns the position immediately after the given index.
The successor of an index must be well defined. For an index `i` into a
collection `c`, calling `c.index(after: i)` returns the same index every
time.
- Parameter i: A valid index of the collection. `i` must be less than
`endIndex`.
- Returns: The index value immediately after `i`.
get · iOS 16.0+endIndex
TypeScriptget endIndex(): GCPhysicalInputElementCollection_Index<SDKHandle>
Swift declarationvar endIndex: GCPhysicalInputElementCollection<T>.Index { get }
The collection's "past the end" position---that is, the position one
greater than the last valid subscript argument.
When you need a range that includes the last element of a collection, use
the half-open range operator (`..<`) with `endIndex`. The `..<` operator
creates a range that doesn't include the upper bound, so it's always
safe to use with `endIndex`. For example:
let numbers = [10, 20, 30, 40, 50]
if let index = numbers.firstIndex(of: 30) {
print(numbers[index ..< numbers.endIndex])
}
// Prints "[30, 40, 50]"
If the collection is empty, `endIndex` is equal to `startIndex`.
subscript · iOS 16.0+subscript
TypeScriptsubscript(elementName: GCDirectionPadElementName): (SDKHandle) | null
Swift declarationsubscript(elementName: GCDirectionPadElementName) -> T? { get }
subscript · iOS 16.0+subscript
TypeScriptsubscript89440(elementName: GCAxisElementName): (SDKHandle) | null
Swift declarationsubscript(elementName: GCAxisElementName) -> T? { get }
subscript · iOS 16.0+subscript
TypeScriptsubscript20909(elementName: GCButtonElementName): (SDKHandle) | null
Swift declarationsubscript(elementName: GCButtonElementName) -> T? { get }
subscript · iOS 16.0+subscript
TypeScriptsubscript52213(elementName: GCSwitchElementName): (SDKHandle) | null
Swift declarationsubscript(elementName: GCSwitchElementName) -> T? { get }
subscript · iOS 16.0+subscript
TypeScriptsubscript28148(elementName: GCPhysicalInputElementName): (SDKHandle) | null
Swift declarationsubscript(elementName: GCPhysicalInputElementName) -> T? { get }
subscript · iOS 16.0+subscript
TypeScriptsubscript73322(position: GCPhysicalInputElementCollection_Index<SDKHandle>): SDKHandle
Swift declarationsubscript(position: GCPhysicalInputElementCollection<T>.Index) -> GCPhysicalInputElementCollection<T>.Element { get }
Accesses the element at the specified position.
The following example accesses an element of an array through its
subscript to print its value:
var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"]
print(streets[1])
// Prints "Bryant"
You can subscript a collection with any valid index other than the
collection's end index. The end index refers to the position one past
the last element of a collection, so it doesn't correspond with an
element.
- Parameter position: The position of the element to access. `position`
must be a valid index of the collection that is not equal to the
`endIndex` property.
- Complexity: O(1)