Package apple.gamekit

Class GKGameSession

  • All Implemented Interfaces:
    NSObject

    @Deprecated
    public class GKGameSession
    extends NSObject
    Deprecated.
    API-Since: 10.0 Deprecated-Since: 12.0 Deprecated-Message: For real-time matches, use GKMatchmakerViewController. For turn-based matches, use GKTurnBasedMatchmakerViewController.
    • Constructor Detail

      • GKGameSession

        protected GKGameSession​(org.moe.natj.general.Pointer peer)
        Deprecated.
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • addEventListener

        @Deprecated
        public static void addEventListener​(@NotNull
                                            @NotNull NSObject listener)
        Deprecated.
        API-Since: 10.0 Deprecated-Since: 12.0
      • allocWithZone

        public static GKGameSession allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
        Deprecated.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
        Deprecated.
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
        Deprecated.
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
        Deprecated.
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • createSessionInContainerWithTitleMaxConnectedPlayersCompletionHandler

        public static void createSessionInContainerWithTitleMaxConnectedPlayersCompletionHandler​(@Nullable
                                                                                                 @Nullable java.lang.String containerName,
                                                                                                 @NotNull
                                                                                                 @NotNull java.lang.String title,
                                                                                                 long maxPlayers,
                                                                                                 @NotNull
                                                                                                 @NotNull GKGameSession.Block_createSessionInContainerWithTitleMaxConnectedPlayersCompletionHandler completionHandler)
        Deprecated.
        Create a new session with the given title and maximum number of connected players. (You may pass 0 to use the system limit of 16 players.)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
        Deprecated.
      • description_static

        public static java.lang.String description_static()
        Deprecated.
      • hash_static

        public static long hash_static()
        Deprecated.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
        Deprecated.
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
        Deprecated.
      • loadSessionsInContainerCompletionHandler

        public static void loadSessionsInContainerCompletionHandler​(@Nullable
                                                                    @Nullable java.lang.String containerName,
                                                                    @NotNull
                                                                    @NotNull GKGameSession.Block_loadSessionsInContainerCompletionHandler completionHandler)
        Deprecated.
        Load all sessions involving the current user.
      • removeEventListener

        @Deprecated
        public static void removeEventListener​(@NotNull
                                               @NotNull NSObject listener)
        Deprecated.
        API-Since: 10.0 Deprecated-Since: 12.0 Deprecated-Message: -[GKLocalPlayer unregisterListener:] or -[GKLocalPlayer unregisterAllListeners:]
      • removeSessionWithIdentifierCompletionHandler

        public static void removeSessionWithIdentifierCompletionHandler​(@NotNull
                                                                        @NotNull java.lang.String identifier,
                                                                        @NotNull
                                                                        @NotNull GKGameSession.Block_removeSessionWithIdentifierCompletionHandler completionHandler)
        Deprecated.
        Remove a session. If called by the owner this deletes the session from the server.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
        Deprecated.
      • version_static

        public static long version_static()
        Deprecated.
      • badgedPlayers

        @NotNull
        public @NotNull NSArray<? extends GKCloudPlayer> badgedPlayers()
        Deprecated.
      • identifier

        @NotNull
        public @NotNull java.lang.String identifier()
        Deprecated.
      • lastModifiedDate

        @NotNull
        public @NotNull NSDate lastModifiedDate()
        Deprecated.
      • lastModifiedPlayer

        @NotNull
        public @NotNull GKCloudPlayer lastModifiedPlayer()
        Deprecated.
      • maxNumberOfConnectedPlayers

        public long maxNumberOfConnectedPlayers()
        Deprecated.
      • owner

        @NotNull
        public @NotNull GKCloudPlayer owner()
        Deprecated.
      • playersWithConnectionState

        @NotNull
        public @NotNull NSArray<? extends GKCloudPlayer> playersWithConnectionState​(long state)
        Deprecated.
        Get the players with the given connection state.
      • saveDataCompletionHandler

        public void saveDataCompletionHandler​(@NotNull
                                              @NotNull NSData data,
                                              @NotNull
                                              @NotNull GKGameSession.Block_saveDataCompletionHandler completionHandler)
        Deprecated.
        Save new/updated persistent data. Data size is limited to 512K. The session's lastModifiedDate and lastModifiedPlayer will be updated upon completion. If a version conflict is detected the handler will include the version currently on the server and an error. In this case the data has not been saved. To resolve the conflict a client would call this method again, presumably after merging data or giving the user a choice on how to resolve the conflict. (Note that when calling again it is possible to get a new conflict, if another device has since written a new version.)
      • sendMessageWithLocalizedFormatKeyArgumentsDataToPlayersBadgePlayersCompletionHandler

        public void sendMessageWithLocalizedFormatKeyArgumentsDataToPlayersBadgePlayersCompletionHandler​(@NotNull
                                                                                                         @NotNull java.lang.String key,
                                                                                                         @NotNull
                                                                                                         @NotNull NSArray<java.lang.String> arguments,
                                                                                                         @Nullable
                                                                                                         @Nullable NSData data,
                                                                                                         @NotNull
                                                                                                         @NotNull NSArray<? extends GKCloudPlayer> players,
                                                                                                         boolean badgePlayers,
                                                                                                         @NotNull
                                                                                                         @NotNull GKGameSession.Block_sendMessageWithLocalizedFormatKeyArgumentsDataToPlayersBadgePlayersCompletionHandler completionHandler)
        Deprecated.
        Send a message to any players in the session. This uses an unreliable push mechanism. Message/data delivery is not guaranteed and may take some time to arrive. Receiving players may optionally have their application badged for this session.
      • setConnectionStateCompletionHandler

        public void setConnectionStateCompletionHandler​(long state,
                                                        @NotNull
                                                        @NotNull GKGameSession.Block_setConnectionStateCompletionHandler completionHandler)
        Deprecated.
        Set your connection state. May fail if you attempt to connect but the connected player limit has already been reached or there are network problems. The session's lastModifiedDate and lastModifiedPlayer will be updated upon completion.
      • title

        @NotNull
        public @NotNull java.lang.String title()
        Deprecated.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.