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

返回

属性

适用于