共用方式為


GKAchievement.ChallengeComposeController 方法

定義

多載

ChallengeComposeController(String, GKPlayer[], GKChallengeComposeHandler)

提供可用來傳送挑戰的檢視控制器,以及訊息給其他玩家。

ChallengeComposeController(GKPlayer[], String, GKChallengeComposeHandler)

提供可用來傳送挑戰的檢視控制器,以及訊息給其他玩家。

ChallengeComposeController(String, GKPlayer[], GKChallengeComposeHandler)

提供可用來傳送挑戰的檢視控制器,以及訊息給其他玩家。

[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

參數

message
String

要顯示給其他玩家的可編輯訊息。 可以是 null

這個參數可以是 null

players
GKPlayer[]

要挑戰的玩家。

completionHandler
GKChallengeComposeHandler

即將加入。

這個參數可以是 null

傳回

結果是 MacOS 上的 AppKit.NSViewController 和 iOS 上的 UIKit.UIViewController 類型。

屬性

適用於

ChallengeComposeController(GKPlayer[], String, GKChallengeComposeHandler)

提供可用來傳送挑戰的檢視控制器,以及訊息給其他玩家。

[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

參數

playerIDs
GKPlayer[]
message
String

即將加入。

這個參數可以是 null

completionHandler
GKChallengeComposeHandler

即將加入。

這個參數可以是 null

傳回

屬性

適用於