com.qualcomm.robotcore.eventloop.opmode

## Interface OpModeManagerNotifier

-     public interface OpModeManagerNotifier

  `OpModeManagerNotifier.Notifications` is an interface by which interested parties can receive notification of the coming and going of opmodes.
  See Also:
    `OpModeManagerImpl#getOpModeManagerOfActivity(Activity)`

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `OpModeManagerNotifier.Notifications` `OpModeManagerNotifier.Notifications` can be used to receive notifications of the comings and goings of opmodes in the system.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `OpMode` | `registerListener(OpModeManagerNotifier.Notifications listener)` Registers an object as explicitly interested in receiving notifications as to the coming and going of opmodes.
    `void` | `unregisterListener(OpModeManagerNotifier.Notifications listener)` Unregisters a previously registered listener.

- - ### Method Detail

    - #### registerListener

          OpMode registerListener(OpModeManagerNotifier.Notifications listener)

      Registers an object as explicitly interested in receiving notifications as to the coming and going of opmodes.
      Parameters:
        `listener` - the object which is to receive notifications
      Returns:
        the currently active opmode at the instant of registration
      See Also:
        `unregisterListener(Notifications)`

    - #### unregisterListener

          void unregisterListener(OpModeManagerNotifier.Notifications listener)

      Unregisters a previously registered listener. If the provided listener is in fact not currently registered, the call has no effect.
      Parameters:
        `listener` - the listener to be unregistered.