GKAchievement.ChallengeComposeController Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ChallengeComposeController(String, GKPlayer[], GKChallengeComposeHandler) |
Provides a view controller that can be used to send a challenge, with a message, to other players. |
ChallengeComposeController(GKPlayer[], 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.
Returns
The result is of type AppKit.NSViewController on MacOS and UIKit.UIViewController on iOS.
- Attributes
Applies to
ChallengeComposeController(GKPlayer[], 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, null)]
[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 (GameKit.GKPlayer[] playerIDs, string message, GameKit.GKChallengeComposeHandler completionHandler);
abstract member ChallengeComposeController : GameKit.GKPlayer[] * string * GameKit.GKChallengeComposeHandler -> UIKit.UIViewController
override this.ChallengeComposeController : GameKit.GKPlayer[] * string * GameKit.GKChallengeComposeHandler -> UIKit.UIViewController
Parameters
- playerIDs
- GKPlayer[]
Returns
- Attributes