GKScore.ChallengeComposeControllerAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ChallengeComposeControllerAsync(String, GKPlayer[]) |
Provides a view controller that can be used to send a challenge, with a message, to other players. |
| ChallengeComposeControllerAsync(String, GKPlayer[], NSViewController) |
Asynchronously provides a view controller that can be used to send a challenge, with a message, to other players, returning a task that provides the challenge result. |
| ChallengeComposeControllerAsync(String, GKPlayer[], UIViewController) |
Asynchronously provides a view controller that can be used to send a challenge, with a message, to other players, returning a task that provides the challenge result. |
ChallengeComposeControllerAsync(String, GKPlayer[])
Provides a view controller that can be used to send a challenge, with a message, to other players.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync(string? message, GameKit.GKPlayer[]? players);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
override this.ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
Parameters
- message
- String
An editable message to display to the other players. May be .
- players
- GKPlayer[]
The players to challenge.
Returns
A task that represents the asynchronous ChallengeComposeController operation. The value of the TResult parameter is of type Action<GameKit.GKChallengeComposeResult>.
- Attributes
Remarks
The ChallengeComposeControllerAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.
Applies to
ChallengeComposeControllerAsync(String, GKPlayer[], NSViewController)
Asynchronously provides a view controller that can be used to send a challenge, with a message, to other players, returning a task that provides the challenge result.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync(string? message, GameKit.GKPlayer[]? players, out AppKit.NSViewController result);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] * NSViewController -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
override this.ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] * NSViewController -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
Parameters
- message
- String
An editable message to display to the other players. May be null.
- players
- GKPlayer[]
The players to challenge.
- result
- NSViewController
The view controller that displays the result of the challenge. May be null.
Returns
- Attributes
Applies to
ChallengeComposeControllerAsync(String, GKPlayer[], UIViewController)
Asynchronously provides a view controller that can be used to send a challenge, with a message, to other players, returning a task that provides the challenge result.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult> ChallengeComposeControllerAsync(string? message, GameKit.GKPlayer[]? players, out UIKit.UIViewController result);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] * UIViewController -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
override this.ChallengeComposeControllerAsync : string * GameKit.GKPlayer[] * UIViewController -> System.Threading.Tasks.Task<GameKit.GKChallengeComposeResult>
Parameters
- message
- String
An editable message to display to the other players. May be null.
- players
- GKPlayer[]
The players to challenge.
- result
- UIViewController
The view controller that displays the result of the challenge. May be null.
Returns
- Attributes