IModalNavigationPlatform.IsReady Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the backend can present or dismiss a modal right now.
public:
property bool IsReady { bool get(); };
public bool IsReady { get; }
member this.IsReady : bool
Public ReadOnly Property IsReady As Boolean
Property Value
Remarks
While this returns false the framework still records pushes and pops on the cross-platform modal stack and still raises the corresponding page lifecycle events, but it does not call PushModalAsync(Page, Boolean) or PopModalAsync(Page, Boolean). When the backend becomes ready it must call RequestSync() so the queued operations are applied. Return true unconditionally if the backend has no readiness requirement.
Deferring has an observable consequence for callers: Navigation.PushModalAsync and Navigation.PopModalAsync complete as soon as the framework has updated its own state, so they do not wait for the deferred presentation and cannot report a failure in it. See the remarks on PushModalAsync(Page, Boolean) for how deferred faults are reported.
Implementations may consult IsWindowReady here. Do not try to derive this from the framework's overall modal readiness, which already folds this property in.