Table of Contents

Interface ITextInputService

Namespace
TileWorld.Engine.Hosting
Assembly
TileWorld.Engine.dll

Provides host-native text input collection for lightweight application flows such as world naming.

public interface ITextInputService

Properties

CurrentText

Gets the current committed text buffer for the active request.

string CurrentText { get; }

Property Value

string

IsRequestActive

Gets a value indicating whether a text input request is currently active.

bool IsRequestActive { get; }

Property Value

bool

Methods

RequestTextAsync(TextInputRequest, CancellationToken)

Begins collecting text input and completes when the request is confirmed or canceled.

Task<string> RequestTextAsync(TextInputRequest request, CancellationToken cancellationToken = default)

Parameters

request TextInputRequest

The parameters that describe the desired input session.

cancellationToken CancellationToken

A cancellation token that aborts the request when triggered.

Returns

Task<string>

A task that resolves to the confirmed text, or null when the request is canceled.