Package apple.gamekit

Class GKMatchmakerViewController

    • Constructor Detail

      • GKMatchmakerViewController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • attemptRotationToDeviceOrientation

        @Deprecated
        public static void attemptRotationToDeviceOrientation()
        Deprecated.
      • automaticallyNotifiesObserversForKey

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

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • 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)
      • classFallbacksForKeyedArchiver

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

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

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • debugDescription_static

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

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

        public static long hash_static()
      • instanceMethodSignatureForSelector

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

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

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

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

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • addPlayersToMatch

        public void addPlayersToMatch​(@NotNull
                                      @NotNull GKMatch match)
        Add additional players (not currently connected) to an existing peer-to-peer match. Apps should elect a single device to do this, otherwise conflicts could arise resulting in unexpected connection errors. API-Since: 5.0
      • defaultInvitationMessage

        @Nullable
        @Deprecated
        public @Nullable java.lang.String defaultInvitationMessage()
        Deprecated.
        default message to use when inviting friends. Can be edited by the user. API-Since: 5.0 Deprecated-Since: 7.0
      • initWithInvite

        public GKMatchmakerViewController initWithInvite​(@NotNull
                                                         @NotNull GKInvite invite)
        Initialize with an accepted invite, allowing the user to see the status of other invited players and get notified when the game starts
      • initWithMatchRequest

        public GKMatchmakerViewController initWithMatchRequest​(@NotNull
                                                               @NotNull GKMatchRequest request)
        Initialize with a matchmaking request, allowing the user to send invites and/or start matchmaking
      • initWithNavigationBarClassToolbarClass

        public GKMatchmakerViewController initWithNavigationBarClassToolbarClass​(@Nullable
                                                                                 @Nullable org.moe.natj.objc.Class navigationBarClass,
                                                                                 @Nullable
                                                                                 @Nullable org.moe.natj.objc.Class toolbarClass)
        Description copied from class: UINavigationController
        Use this initializer to make the navigation controller use your custom bar class. Passing nil for navigationBarClass will get you UINavigationBar, nil for toolbarClass gets UIToolbar. The arguments must otherwise be subclasses of the respective UIKit classes. API-Since: 5.0
        Overrides:
        initWithNavigationBarClassToolbarClass in class UINavigationController
      • isHosted

        public boolean isHosted()
        set to YES to receive hosted (eg. not peer-to-peer) match results. Will cause the controller to return an array of players instead of a match.
      • setHosted

        public void setHosted​(boolean value)
        set to YES to receive hosted (eg. not peer-to-peer) match results. Will cause the controller to return an array of players instead of a match.
      • matchRequest

        @NotNull
        public @NotNull GKMatchRequest matchRequest()
      • setDefaultInvitationMessage

        @Deprecated
        public void setDefaultInvitationMessage​(@Nullable
                                                @Nullable java.lang.String value)
        Deprecated.
        default message to use when inviting friends. Can be edited by the user. API-Since: 5.0 Deprecated-Since: 7.0
      • setHostedPlayerConnected

        @Deprecated
        public void setHostedPlayerConnected​(@NotNull
                                             @NotNull java.lang.String playerID,
                                             boolean connected)
        Deprecated.
        This method is obsolete. It will never be invoked and its implementation does nothing** API-Since: 5.0 Deprecated-Since: 8.0
      • setHostedPlayerDidConnect

        public void setHostedPlayerDidConnect​(@NotNull
                                              @NotNull GKPlayer player,
                                              boolean connected)
        API-Since: 8.0
      • setHostedPlayerReady

        @Deprecated
        public void setHostedPlayerReady​(@NotNull
                                         @NotNull java.lang.String playerID)
        Deprecated.
        This method is obsolete. It will never be invoked and its implementation does nothing** API-Since: 4.1 Deprecated-Since: 5.0 Deprecated-Message: This is never invoked and its implementation does nothing, use setHostedPlayer:connected: instead
      • matchmakingMode

        public long matchmakingMode()
        this controls which mode of matchmaking to support in the UI (all, nearby only, automatch only, invite only). Throws an exeption if you can not set to the desired mode (due to restrictions)
      • setMatchmakingMode

        public void setMatchmakingMode​(long value)
        this controls which mode of matchmaking to support in the UI (all, nearby only, automatch only, invite only). Throws an exeption if you can not set to the desired mode (due to restrictions)
      • canStartWithMinimumPlayers

        public boolean canStartWithMinimumPlayers()
        A BOOL value to allow the GKMatchMakerViewController to return control to the game once the minimum number of players are connected. By default the value is NO, and the multiplayer match can only proceed after all players are connected. If the value is set to YES, then once the number of connected players is greater than or equal to minPlayers of the match request, matchmakerViewController:didFindMatch: will be called and the game can get the match instance, and update the game scene accordingly. The remaining players wil continue to connect. API-Since: 15.0
      • setCanStartWithMinimumPlayers

        public void setCanStartWithMinimumPlayers​(boolean value)
        A BOOL value to allow the GKMatchMakerViewController to return control to the game once the minimum number of players are connected. By default the value is NO, and the multiplayer match can only proceed after all players are connected. If the value is set to YES, then once the number of connected players is greater than or equal to minPlayers of the match request, matchmakerViewController:didFindMatch: will be called and the game can get the match instance, and update the game scene accordingly. The remaining players wil continue to connect. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.