Class GKGameSession

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    @Deprecated
    public class GKGameSession
    extends NSObject
    Deprecated.
    Deprecated in iOS 12.0.
    Since:
    Available in iOS 10.0 and later.
    • Constructor Detail

      • GKGameSession

        public GKGameSession()
        Deprecated.
      • GKGameSession

        protected GKGameSession​(NSObject.Handle h,
                                long handle)
        Deprecated.
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Deprecated.
      • getTitle

        public java.lang.String getTitle()
        Deprecated.
      • getLastModifiedDate

        public NSDate getLastModifiedDate()
        Deprecated.
      • getLastModifiedPlayer

        public GKCloudPlayer getLastModifiedPlayer()
        Deprecated.
      • getMaxNumberOfConnectedPlayers

        public long getMaxNumberOfConnectedPlayers()
        Deprecated.
      • getShareURL

        public void getShareURL​(org.robovm.objc.block.VoidBlock2<NSURL,​NSError> completionHandler)
        Deprecated.
      • loadData

        public void loadData​(org.robovm.objc.block.VoidBlock2<NSData,​NSError> completionHandler)
        Deprecated.
      • saveData

        public void saveData​(NSData data,
                             org.robovm.objc.block.VoidBlock2<NSData,​NSError> completionHandler)
        Deprecated.
      • setConnectionState

        public void setConnectionState​(GKConnectionState state,
                                       org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Deprecated.
      • sendData

        public void sendData​(NSData data,
                             GKTransportType transport,
                             org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Deprecated.
      • clearBadge

        public void clearBadge​(NSArray<GKCloudPlayer> players,
                               org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Deprecated.
      • createSessionInContainer

        public static void createSessionInContainer​(java.lang.String containerName,
                                                    java.lang.String title,
                                                    long maxPlayers,
                                                    org.robovm.objc.block.VoidBlock2<GKGameSession,​NSError> completionHandler)
        Deprecated.
      • loadSessionsInContainer

        public static void loadSessionsInContainer​(java.lang.String containerName,
                                                   org.robovm.objc.block.VoidBlock2<NSArray<GKGameSession>,​NSError> completionHandler)
        Deprecated.
      • loadSession

        public static void loadSession​(java.lang.String identifier,
                                       org.robovm.objc.block.VoidBlock2<GKGameSession,​NSError> completionHandler)
        Deprecated.
      • removeSession

        public static void removeSession​(java.lang.String identifier,
                                         org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Deprecated.
      • addEventListener

        @Deprecated
        public static void addEventListener​(GKGameSessionEventListener listener)
        Deprecated.
        Deprecated in iOS 12.0. Use GKLocalPlayer's registerListener: to register for GKLocalPlayerListener event notifications.
        Since:
        Available in iOS 10.0 and later.
      • removeEventListener

        @Deprecated
        public static void removeEventListener​(GKGameSessionEventListener listener)
        Deprecated.
        Deprecated in iOS 12.0. Use GKLocalPlayer's unregisterListener: or unregisterAllListeners to unregister from GKLocalPlayerListener event notifications.
        Since:
        Available in iOS 10.0 and later.