Interface ILayoutPhaseListener<TPhaseType>
Allows a service to listen for a specific phase to start and/or end.
public interface ILayoutPhaseListener<in TPhaseType> where TPhaseType : ILayoutPhase
Type Parameters
TPhaseTypeThe base type of the phase.
Methods
OnPhaseEnded(TPhaseType, CancellationToken)
Runs after EndPhaseAsync(CancellationToken).
UniTask OnPhaseEnded(TPhaseType phase, CancellationToken token)
Parameters
phaseTPhaseTypetokenCancellationToken
Returns
- UniTask
OnPhaseStarted(TPhaseType, CancellationToken)
Runs after BeginPhaseAsync(CancellationToken).
UniTask OnPhaseStarted(TPhaseType phase, CancellationToken token)
Parameters
phaseTPhaseTypetokenCancellationToken
Returns
- UniTask