Asynchronously shows the sign-in UI.
public:
static IAsyncOperation<AccountPickerResult^ >^ ShowAccountPickerAsync(
IController^ controller,
AccountPickerOptions options
)
controller
Type: IController
Controller with which to pair the selected user. Other controllers will be able to interact with the account picker UI, but the passed in controller is paired with the selected user no matter which controller actually selected the user in the account picker. For example, if Gamepad1 is passed in and a controller other than Gamepad1, such as BodyController1, speech, or Gamepad2, selects the user, Gamepad1 is still paired with the selected user.
If you specify null for this parameter, the user/controller pairing for the selected user will not be changed.
options
Type: AccountPickerOptions
Enumeration value indicating whether guests should be allowed in the sign-in UI.
Type: IAsyncOperation<AccountPickerResult^ >
Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation. Completion of the asynchronous operation is signaled by using a handler that is passed to the IAsyncOperation<TResult>.Completed property. When the asynchronous operation is complete, the result of the operation can be retrieved by using the IAsyncOperation<TResult>.GetResults method.
When adding a new user with the account picker, the last screen asks the user to press the Xbox button to go Home. This results in a task cancelled message being sent back to the title that launched the account picker. This is a normal result that titles get if a user cancels out, but it also happens when the user adds a new account. This is expected behavior, and titles need to handle this case.
Namespace: Windows.Xbox.UI
Metadata: windows.winmd