IOperationServiceTryExecuteUiOperation Method |
Allows to show messages on the currently opened screen.
Namespace:
Resto.Front.Api
Assembly:
Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax void TryExecuteUiOperation(
Action<IViewManager> callback
)
Parameters
- callback
- Type: SystemActionIViewManager
Callback that can show messages using the view manager.
Exceptions Exception | Condition |
---|
NotSupportedException | Current screen doesn't support this operation. |
OperationCanceledException | Current screen has canceled the operation. It means that the current screen was unable to execute the operation immediately and therefore scheduled it for executing later, but then navigation to another screen has happened in a way that prevented calling delayed operations before changing the screen. |
Exception | Any exception thrown by callback. |
Remarks
The callback will be called immediately if the are no uninterruptable activity by user or another plugin, otherwise this method will wait until the screen becomes idle.
See Also