GKScore.ChallengeComposeControllerAsync 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| ChallengeComposeControllerAsync(String, GKPlayer[]) | 
						 提供可用于向其他玩家发送质询和消息的视图控制器。  | 
        	
| ChallengeComposeControllerAsync(String, GKPlayer[], NSViewController) | |
| ChallengeComposeControllerAsync(String, GKPlayer[], UIViewController) | 
						 异步提供一个视图控制器,该控制器可用于向其他玩家发送质询和消息,并返回提供质询结果的任务。  | 
        	
ChallengeComposeControllerAsync(String, GKPlayer[])
提供可用于向其他玩家发送质询和消息的视图控制器。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync (string message, GameKit.GKPlayer[] players);
	[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync (string message, GameKit.GKPlayer[] players);
	abstract member ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
override this.ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
	参数
- message
 - String
 
要显示给其他玩家的可编辑消息。 可以是 。
- players
 - GKPlayer[]
 
要挑战的玩家。
返回
表示异步 ChallengeComposeController 操作的任务。   TResult 参数的值的类型为 Action<GameKit.GKChallengeComposeResult>。
- 属性
 
注解
ChallengeComposeControllerAsync 方法适合用于 C# 异步,方法是将控件返回到具有表示操作的任务的调用方。
内容待定。
适用于
ChallengeComposeControllerAsync(String, GKPlayer[], NSViewController)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync (string message, GameKit.GKPlayer[] players, out AppKit.NSViewController result);
	abstract member ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] *  -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
override this.ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] *  -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
	参数
- message
 - String
 
- players
 - GKPlayer[]
 
- result
 - NSViewController
 
返回
- 属性
 
适用于
ChallengeComposeControllerAsync(String, GKPlayer[], UIViewController)
异步提供一个视图控制器,该控制器可用于向其他玩家发送质询和消息,并返回提供质询结果的任务。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync (string message, GameKit.GKPlayer[] players, out UIKit.UIViewController result);
	abstract member ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] *  -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
override this.ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] *  -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
	参数
- message
 - String
 
要显示给其他玩家的可编辑消息。 可为 null。
- players
 - GKPlayer[]
 
要挑战的玩家。
- result
 - UIViewController
 
显示质询结果的视图控制器。 可为 null。
返回
- 属性