Table of Contents

Struct ScreenForegroundToken

Namespace
MackySoft.Navigathena
Assembly
MackySoft.Navigathena.dll

Represents the eligibility of a screen for application operations during one foreground period.

public readonly struct ScreenForegroundToken
Inherited Members

Remarks

The runtime supplies this token through ScreenActivityContext after native input admission, when activation starts. The application can retain it and check IsValid before executing an operation. Returning to the foreground issues a new token; an invalid token never becomes valid again. Copies refer to the same foreground period. The default value is invalid.

Properties

CancellationToken

Signals revocation after native input closes; use it only for work that must end with this foreground period.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

Remarks

Eligibility is invalidated before native focus-loss callbacks or cancellation notification. The default value returns CancellationToken.None. Work that must survive a popup needs a separate lifetime.

EntryId

public NavigationEntryId EntryId { get; }

Property Value

NavigationEntryId

IsValid

Is true while the token's foreground period remains available for application operations.

public bool IsValid { get; }

Property Value

bool

RegionId

public RegionInstanceId RegionId { get; }

Property Value

RegionInstanceId