logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IPrimaryInputPromptView

    Ui View that shows a prompt to select the primary device (P1) and exposes the result to the rest of the system.

    Namespace: Serenity.Ui.Application.Interfaces.Views
    Assembly: Serenity.Ui.Application.dll
    Syntax
    public interface IPrimaryInputPromptView : IViewBase, IFoundationSettings

    Methods

    ArmAndAwait(CancellationToken)

    Arms the prompt and awaits user input to select the primary device (P1).

    Declaration
    void ArmAndAwait(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    A token to monitor for cancellation requests.

    Events

    OnPrimarySelected

    Event triggered when the primary device has been selected. The tuple contains (scheme, deviceId, displayName).

    Declaration
    event Action<(string scheme, string deviceId, string displayName)> OnPrimarySelected
    Event Type
    Type Description
    Action<(string scheme, string deviceId, string displayName)>

    Action that takes a tuple (string scheme, string deviceId, string displayName) as a parameter and returns void.

    In this article
    © 2026 Serenity. All Rights Reserved