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
-
Method Details
-
onIntent
Receive notification intent to handle- Parameters:
intent
- Notification intent- Returns:
true
ifPlayerService
needs to shutdown which is equivalent ofPlayerService.Binder.killBackgroundPlayer(boolean)
and otherwisefalse
-
release
void release()Release any unneeded resources
-