Package com.castlabs.android.player

# Interface PlayerService.NotificationHandler

Enclosing class:
  `PlayerService`

public static interface PlayerService.NotificationHandler
Implementation of the interface can receive notification intents from the `PlayerService`. Shall be installed via `PlayerService.Binder.releaseToBackground(IPlayerView, int, Notification, boolean, NotificationHandler)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `onIntent(Intent intent)`
  Receive notification intent to handle
  `void`
  `release()`
  Release any unneeded resources

- ## Method Details

  - ### onIntent

    boolean onIntent(@NonNull Intent intent)
    Receive notification intent to handle
    Parameters:
      `intent` - Notification intent
    Returns:
      `true` if `PlayerService` needs to shutdown which is equivalent of `PlayerService.Binder.killBackgroundPlayer(boolean)` and otherwise `false`

  - ### release

    void release()
    Release any unneeded resources