Skip to main content

NotificationEventHandler

A class to track the state of each notification event type and handle actions based on the player's settings

Index

Constructors

constructor

Properties

eventType

popup

popup: Notification

raisedCount

raisedCount: number

settings

Methods

playAudio

  • playAudio(): boolean
  • Determines whether an audio alert shoud be played


    Returns boolean

    • Whether audio should be played

raise

  • Raise a notification


    Parameters

    • data: NotificationData

      Data relating to the event that can be passed into a popup

    Returns void

    • Nothing

raisePopup

  • Raise a popup notification


    Parameters

    Returns void

    • Nothing

reset

  • reset(resetingAll: boolean): void
  • Resets all raised notifications for this event


    Parameters

    • resetingAll: boolean

      Indicates if all notifications are being reset, to avoid unnecessarily repeating steps for each event type

    Returns void

    • Nothing