Interface IViewAdapter
- Namespace
- MackySoft.Navigathena
- Assembly
- MackySoft.Navigathena.dll
Applies runtime output, native focus, and user-input permissions to one concrete view.
public interface IViewAdapter
Remarks
Identity identifies the native view, even when multiple adapters wrap it. OrderingDomain identifies views whose numeric orders can be compared. Applying permissions must not replace the game's styling or animation state.
Properties
Identity
object Identity { get; }
Property Value
IsAlive
bool IsAlive { get; }
Property Value
OrderingDomain
object OrderingDomain { get; }
Property Value
Presentation
ViewPresentation Presentation { get; }
Property Value
Methods
Apply(ViewPresentation)
Applies a synchronous presentation change without changing semantic control availability.
void Apply(ViewPresentation presentation)
Parameters
presentationViewPresentation
Remarks
For IViewPresentationBatchAdapter, route permission changes through its PresentationBatch; synchronous Apply is reserved for initial closed state and order-only changes.
Validate(ViewPresentation)
Checks native presentation constraints without changing the view.
void Validate(ViewPresentation presentation)
Parameters
presentationViewPresentation
Events
Lost
event Action<string>? Lost