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 thePlayerService
. Shall be installed viaPlayerService.Binder.releaseToBackground(IPlayerView, int, Notification, boolean, NotificationHandler)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onIntent(Intent intent)
Receive notification intent to handlevoid
release()
Release any unneeded resources
-
-
-
Method Detail
-
onIntent
boolean onIntent(@NonNull Intent intent)
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
-
-