GKAchievement.ChallengeComposeController 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- players
- GKPlayer[]
要挑战的玩家。
返回
结果的类型为 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[]
返回
- 属性