GKScore.ChallengeComposeController 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ChallengeComposeController(String, GKPlayer[], GKChallengeComposeHandler) |
提供可用來傳送挑戰的檢視控制器,以及訊息給其他玩家。 |
ChallengeComposeController(String[], 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
參數
傳回
結果是 MacOS 上的 AppKit.NSViewController 和 iOS 上的 UIKit.UIViewController 類型。
- 屬性
適用於
ChallengeComposeController(String[], String, GKChallengeComposeHandler)
提供可用來傳送挑戰的檢視控制器,以及訊息給其他玩家。
[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
參數
傳回
- 屬性