* Creates a NotificationManager instance
(
_navigation,
_showTransactionNotification,
_hideTransactionNotification,
_showSimpleNotification,
_removeNotificationById,
)
| 265 | * Creates a NotificationManager instance |
| 266 | */ |
| 267 | constructor( |
| 268 | _navigation, |
| 269 | _showTransactionNotification, |
| 270 | _hideTransactionNotification, |
| 271 | _showSimpleNotification, |
| 272 | _removeNotificationById, |
| 273 | ) { |
| 274 | if (!NotificationManager.instance) { |
| 275 | this._navigation = _navigation; |
| 276 | this._showTransactionNotification = _showTransactionNotification; |
| 277 | this._hideTransactionNotification = _hideTransactionNotification; |
| 278 | this._showSimpleNotification = _showSimpleNotification; |
| 279 | this._removeNotificationById = _removeNotificationById; |
| 280 | this._transactionToView = []; |
| 281 | this._backgroundMode = false; |
| 282 | NotificationManager.instance = this; |
| 283 | AppState.addEventListener('change', this._handleAppStateChange); |
| 284 | } |
| 285 | |
| 286 | return NotificationManager.instance; |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * Navigates to a specific view |
nothing calls this directly
no outgoing calls
no test coverage detected