Package com.theoplayer.android.api.cache
Interface CacheNotificationsBuilder
-
- All Implemented Interfaces:
public interface CacheNotificationsBuilderThis interface provides methods for creating custom notifications and notification channels to show the progress of caching tasks in THEOplayer.
-
-
Method Summary
Modifier and Type Method Description NotificationCompat.BuildercreateProgressNotificationBuilder(CachingTask task, NotificationCompat.Builder builder)Creates a custom progress notification builder for a given caching task. NotificationCompat.BuildercreateStatusNotificationBuilder(CachingTask task, NotificationCompat.Builder builder)Creates a custom status notification builder for a given caching task. NotificationChannelCompat.BuildercreateNotificationChannel(NotificationChannelCompat.Builder channel)Creates a custom notification channel that is used in notifications for caching tasks. -
-
Method Detail
-
createProgressNotificationBuilder
NotificationCompat.Builder createProgressNotificationBuilder(CachingTask task, NotificationCompat.Builder builder)
Creates a custom progress notification builder for a given caching task.
- Parameters:
task- The caching task for which the progress notification is being created.builder- The base notification builder to customize for the progress notification.- Returns:
The customized notification builder for the progress notification.
-
createStatusNotificationBuilder
NotificationCompat.Builder createStatusNotificationBuilder(CachingTask task, NotificationCompat.Builder builder)
Creates a custom status notification builder for a given caching task.
- Parameters:
task- The caching task for which the status notification is being created.builder- The base notification builder to customize for the status notification.- Returns:
The customized notification builder for the status notification.
-
createNotificationChannel
NotificationChannelCompat.Builder createNotificationChannel(NotificationChannelCompat.Builder channel)
Creates a custom notification channel that is used in notifications for caching tasks.
- Parameters:
channel- The base notification channel builder to customize for the media file downloading.- Returns:
The customized notification channel builder.
-
-
-
-