Skip to content

PopupNotification.State

property · PopupNotification · cAlgo.API Since 5.3

DesktopCLICloud

Gets state of popup notification.

Environment behaviour

CLI — works differently. Complete only changes the local State; nothing is shown. Still throws InvalidOperationException when the state is not InProgress.

Cloud — works differently. Complete only changes the local State; nothing is shown. Still throws InvalidOperationException when the state is not InProgress.

Definition

PopupNotificationState State {get;}
popupNotification.State: PopupNotificationState

Returns PopupNotificationState

Examples

var popup = Notifications.ShowPopup("Sync", "Synchronizing data...", PopupNotificationState.InProgress);
Print("Popup state: {0}", popup.State);
popup = api.Notifications.ShowPopup("Sync", "Synchronizing data...", PopupNotificationState.InProgress)
api.Print(f"Popup state: {popup.State}")