Table of Contents

Class TextInputRequest

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

Describes a host-native text input request.

public sealed class TextInputRequest
Inheritance
TextInputRequest
Inherited Members

Properties

CharacterFilter

Gets an optional character filter applied by the host while text input is active.

public Func<char, bool> CharacterFilter { get; init; }

Property Value

Func<char, bool>

Remarks

When specified, characters for which this delegate returns false are ignored by the host. Hosts should still preserve control keys such as backspace, enter, and escape.

InitialText

Gets the initial committed text buffer.

public string InitialText { get; init; }

Property Value

string

MaxLength

Gets the maximum number of committed characters accepted by the request.

public int MaxLength { get; init; }

Property Value

int

Prompt

Gets the optional hint shown by the caller while input is active.

public string Prompt { get; init; }

Property Value

string

Title

Gets the descriptive title shown by the caller for the request.

public string Title { get; init; }

Property Value

string