Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::ToastRequests Class Referenceabstract

#include <ToastBus.h>

Inherits AZ::EBusTraits.

Public Types

using BusIdType = ToastRequestBusId
 

Public Member Functions

virtual void HideToastNotification (const ToastId &toastId)=0
 
virtual ToastId ShowToastNotification (const AzQtComponents::ToastConfiguration &toastConfiguration)=0
 
virtual ToastId ShowToastAtCursor (const AzQtComponents::ToastConfiguration &toastConfiguration)=0
 
virtual ToastId ShowToastAtPoint (const QPoint &screenPosition, const QPointF &anchorPoint, const AzQtComponents::ToastConfiguration &)=0
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Multiple
 
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::ById
 

Detailed Description

An EBus used to hide or show toast notifications. Generally, these request are handled by a ToastNotificationsView that has been created with a specific ToastRequestBusId e.g. AZ_CRC("ExampleToastNotificationView")

Member Function Documentation

◆ HideToastNotification()

virtual void AzToolsFramework::ToastRequests::HideToastNotification ( const ToastId &  toastId)
pure virtual

Hide a toast notification widget.

Parameters
toastIdThe toast notification's ToastId

◆ ShowToastAtCursor()

virtual ToastId AzToolsFramework::ToastRequests::ShowToastAtCursor ( const AzQtComponents::ToastConfiguration &  toastConfiguration)
pure virtual

Show a toast notification with the specified toast configuration at the current moust cursor location.

Parameters
toastConfigurationThe toast configuration
Returns
a ToastId

◆ ShowToastAtPoint()

virtual ToastId AzToolsFramework::ToastRequests::ShowToastAtPoint ( const QPoint &  screenPosition,
const QPointF &  anchorPoint,
const AzQtComponents::ToastConfiguration &   
)
pure virtual

Show a toast notification with the specified toast configuration at the specified location.

Parameters
screenPositionThe screen position
anchorPointThe anchorPoint for the toast notification widget
toastConfigurationThe toast configuration
Returns
a ToastId

◆ ShowToastNotification()

virtual ToastId AzToolsFramework::ToastRequests::ShowToastNotification ( const AzQtComponents::ToastConfiguration &  toastConfiguration)
pure virtual

Show a toast notification with the specified toast configuration. When handled by a ToastNotificationsView, notifications are queued and presented to the user in sequence.

Parameters
toastConfigurationThe toast configuration
Returns
a ToastId

The documentation for this class was generated from the following file: