# Class: Notifications

## coreutils. Notifications

#### new Notifications()

  Static helper class to get and create shared signals

### Methods

#### <static> getNotificationByID(id, autoCreate)

  Get signal by id. If auto create is true and there is no signal it will be created.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string | id of signal
  `autoCreate` | boolean | undefined | should be created if signal doesn't exists

  ##### Returns:

  [description]
  Type
    coreutils.Signal | null

#### <static> globalNotification()

  Get global signal. It will be created if it doesn't exists.

  ##### Returns:

  global signal
  Type
    coreutils.Signal

#### <static> registerNotification(id, signal)

  Register new signal useing id. Creates new signal if signal param is undefined

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string | id of signal
  `signal` | coreutils.Signal | undefined | signal to add

  ##### Returns:

  registered signal
  Type
    coreutils.Signal

#### <static> removeNotification(id)

  Remove signal

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string | id of the signal

#### Search results