public static interface ScreencastSession.SessionListener
ScreencastSession.SessionListener provides interface for developer to notify screencast service upon different methods.| Modifier and Type | Method and Description | 
|---|---|
void | 
destroyService()
ScreencastSession notify the screencast Service to destroy itself | 
void | 
updateNotification(Notification notification)
ScreencastSession notify the screencast Service to update Notification
 Note: for android 8.0, you MUST implement Notification.Builder#setChannelId(String)
 for your customized Notification, otherwise you'll get the thrown RuntimeException
 with description invalid channel for service notification when
 NotificationManagerCompat.notify(int, Notification). | 
void updateNotification(Notification notification)
ScreencastSession notify the screencast Service to update Notification
 Note: for android 8.0, you MUST implement Notification.Builder#setChannelId(String)
 for your customized Notification, otherwise you'll get the thrown RuntimeException
 with description invalid channel for service notification when
 NotificationManagerCompat.notify(int, Notification).NotificationManagerCompat.notify(int, Notification), 
ScreencastSession.getNotificationChannel()void destroyService()
ScreencastSession notify the screencast Service to destroy itselfService.stopSelf()