getCurrentLargeIcon

abstract fun getCurrentLargeIcon(player: Player, callback: PlayerNotificationManager.BitmapCallback): Bitmap

Gets the large icon for the current media item.

When a bitmap initially needs to be asynchronously loaded, a placeholder (or null) can be returned and the bitmap asynchronously passed to the PlayerNotificationManager.BitmapCallback once it is loaded. Because the adapter may be called multiple times for the same media item, the bitmap should be cached by the app and whenever possible be returned synchronously at subsequent calls for the same media item.

See setLargeIcon.

Parameters

player

The Player for which a notification is being built.

callback

A PlayerNotificationManager.BitmapCallback to provide a Bitmap asynchronously.