Table of Contents

Class ScreenActivityContext<TResult>

Namespace
MackySoft.Navigathena
Assembly
MackySoft.Navigathena.dll
public sealed class ScreenActivityContext<TResult> : ScreenActivityContext

Type Parameters

TResult
Inheritance
ScreenActivityContext<TResult>
Inherited Members

Properties

Call

public ScreenCall<TResult> Call { get; }

Property Value

ScreenCall<TResult>

Methods

StartWork(Func<ScreenWorkContext<TResult>, ValueTask>)

Schedules owned work after the current navigation settles. Do not await its completion inside a lifecycle callback.

public ScreenWork StartWork(Func<ScreenWorkContext<TResult>, ValueTask> work)

Parameters

work Func<ScreenWorkContext<TResult>, ValueTask>

The complete asynchronous operation, including any cleanup that uses screen resources.

Returns

ScreenWork

A handle for observing completion or requesting execution cancellation.

Remarks

Work registered during activation starts only after activation succeeds; a failed activation cancels its pending work. Once started, work survives deactivation until it finishes, is canceled, or its screen binding ends.

Exceptions

ArgumentNullException

work is null.

InvalidOperationException

This activity or its screen binding has ended.