GKScore.ChallengeComposeController Method

Definition

Overloads

ChallengeComposeController(String, GKPlayer[], GKChallengeComposeHandler)

Provides a view controller that can be used to send a challenge, with a message, to other players.

ChallengeComposeController(String[], String, GKChallengeComposeHandler)

Provides a view controller that can be used to send a challenge, with a message, to other players.

ChallengeComposeController(String, GKPlayer[], GKChallengeComposeHandler)

Provides a view controller that can be used to send a challenge, with a message, to other players.

[Foundation.Export("challengeComposeControllerWithMessage:players:completionHandler:")]
[Foundation.Export("challengeComposeControllerWithMessage:players:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIViewController ChallengeComposeController (string message, GameKit.GKPlayer[] players, GameKit.GKChallengeComposeHandler completionHandler);
[Foundation.Export("challengeComposeControllerWithMessage:players:completionHandler:")]
public virtual UIKit.UIViewController ChallengeComposeController (string message, GameKit.GKPlayer[] players, GameKit.GKChallengeComposeHandler completionHandler);
abstract member ChallengeComposeController : string * GameKit.GKPlayer[] * GameKit.GKChallengeComposeHandler -> UIKit.UIViewController
override this.ChallengeComposeController : string * GameKit.GKPlayer[] * GameKit.GKChallengeComposeHandler -> UIKit.UIViewController

Parameters

message
String

An editable message to display to the other players. May be null.

This parameter can be null.

players
GKPlayer[]

The players to challenge.

This parameter can be null.

completionHandler
GKChallengeComposeHandler

Handler to be called after the view controller is displayed. May be null.

This parameter can be null.

Returns

The result is of type AppKit.NSViewController on MacOS and UIKit.UIViewController on iOS.

Attributes

Applies to

ChallengeComposeController(String[], String, GKChallengeComposeHandler)

Provides a view controller that can be used to send a challenge, with a message, to other players.

[Foundation.Export("challengeComposeControllerWithPlayers:message:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Pass 'GKPlayers' to 'ChallengeComposeController (GKPlayer [] players, string message, ...)' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIViewController ChallengeComposeController (string[] playerIDs, string message, GameKit.GKChallengeComposeHandler completionHandler);
abstract member ChallengeComposeController : string[] * string * GameKit.GKChallengeComposeHandler -> UIKit.UIViewController
override this.ChallengeComposeController : string[] * string * GameKit.GKChallengeComposeHandler -> UIKit.UIViewController

Parameters

playerIDs
String[]

The player IDs of the players to challenge. May be null.

This parameter can be null.

message
String

An editable message to display to the other players. May be null.

This parameter can be null.

completionHandler
GKChallengeComposeHandler

Handler to be called after the view controller is displayed. May be null.

This parameter can be null.

Returns

Attributes

Applies to