Class GCController

All Implemented Interfaces:
NSObjectProtocol, GCDevice, ObjCProtocol

public class GCController
extends NSObject
implements GCDevice
  • Constructor Details

    • GCController

      public GCController()
    • GCController

      protected GCController​(NSObject.Handle h, long handle)
    • GCController

      protected GCController​(NSObject.SkipInit skipInit)
  • Method Details

    • getControllerPausedHandler

      @Deprecated public VoidBlock1<GCController> getControllerPausedHandler()
      Deprecated.
      Deprecated in iOS 13.0. controllerPausedHandler has been deprecated. Use the Menu button found on the controller's profile, if it exists.
    • setControllerPausedHandler

      @Deprecated public void setControllerPausedHandler​(VoidBlock1<GCController> v)
      Deprecated.
      Deprecated in iOS 13.0. controllerPausedHandler has been deprecated. Use the Menu button found on the controller's profile, if it exists.
    • getCurrent

      public static GCController getCurrent()
      Since:
      Available in iOS 14.0 and later.
    • shouldMonitorBackgroundEvents

      public static boolean shouldMonitorBackgroundEvents()
      Since:
      Available in iOS 14.5 and later.
    • setShouldMonitorBackgroundEvents

      public static void setShouldMonitorBackgroundEvents​(boolean v)
      Since:
      Available in iOS 14.5 and later.
    • isAttachedToDevice

      public boolean isAttachedToDevice()
    • isSnapshot

      public boolean isSnapshot()
      Since:
      Available in iOS 13.0 and later.
    • getPlayerIndex

      public GCControllerPlayerIndex getPlayerIndex()
    • setPlayerIndex

      public void setPlayerIndex​(GCControllerPlayerIndex v)
    • getBattery

      public GCDeviceBattery getBattery()
      Since:
      Available in iOS 14.0 and later.
    • getGamepad

      @Deprecated public GCGamepad getGamepad()
      Deprecated.
      Deprecated in iOS 10.0. Use extendedGamepad
    • getMicroGamepad

      public GCMicroGamepad getMicroGamepad()
    • getExtendedGamepad

      public GCExtendedGamepad getExtendedGamepad()
    • getMotion

      public GCMotion getMotion()
    • getLight

      public GCDeviceLight getLight()
      Since:
      Available in iOS 14.0 and later.
    • getHaptics

      public GCDeviceHaptics getHaptics()
      Since:
      Available in iOS 14.0 and later.
    • getHandlerQueue

      public DispatchQueue getHandlerQueue()
      Specified by:
      getHandlerQueue in interface GCDevice
    • setHandlerQueue

      public void setHandlerQueue​(DispatchQueue v)
      Specified by:
      setHandlerQueue in interface GCDevice
    • getVendorName

      public String getVendorName()
      Specified by:
      getVendorName in interface GCDevice
    • getProductCategory

      public String getProductCategory()
      Specified by:
      getProductCategory in interface GCDevice
      Since:
      Available in iOS 13.0 and later.
    • getPhysicalInputProfile

      public GCPhysicalInputProfile getPhysicalInputProfile()
      Specified by:
      getPhysicalInputProfile in interface GCDevice
      Since:
      Available in iOS 14.0 and later.
    • DidConnectNotification

      public static NSString DidConnectNotification()
    • DidDisconnectNotification

      public static NSString DidDisconnectNotification()
    • DidBecomeCurrentNotification

      public static NSString DidBecomeCurrentNotification()
      Since:
      Available in iOS 14.0 and later.
    • DidStopBeingCurrentNotification

      public static NSString DidStopBeingCurrentNotification()
      Since:
      Available in iOS 14.0 and later.
    • capture

      public GCController capture()
      Since:
      Available in iOS 13.0 and later.
    • getControllers

      public static NSArray<GCController> getControllers()
    • startWirelessControllerDiscovery

      public static void startWirelessControllerDiscovery​(Runnable completionHandler)
    • stopWirelessControllerDiscovery

      public static void stopWirelessControllerDiscovery()
    • controllerWithMicroGamepad

      public static GCController controllerWithMicroGamepad()
      Since:
      Available in iOS 13.0 and later.
    • controllerWithExtendedGamepad

      public static GCController controllerWithExtendedGamepad()
      Since:
      Available in iOS 13.0 and later.