MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / constructor

Method constructor

app/core/NotificationManager.js:267–287  ·  view source on GitHub ↗

* Creates a NotificationManager instance

(
    _navigation,
    _showTransactionNotification,
    _hideTransactionNotification,
    _showSimpleNotification,
    _removeNotificationById,
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected