Class DefaultMediaDescriptionAdapter

  • All Implemented Interfaces:

    public class DefaultMediaDescriptionAdapter
    extends java.lang.Object
    The @{link MediaDescriptionAdapter} for the player notification displayed in the notification.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description createCurrentContentIntent​( player)  
      java.lang.CharSequence getCurrentContentText​( player)  
      java.lang.CharSequence getCurrentContentTitle​( player) getCurrentLargeIcon​( player, callback)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface

    • Constructor Detail

      • DefaultMediaDescriptionAdapter

        public DefaultMediaDescriptionAdapter​(MediaPlayback<> playback)
        Construct a new adapter from the current media playback.
        playback - The MediaPlayback with ExoPlayer as the Player.
    • Method Detail

      • getCurrentContentTitle

        public java.lang.CharSequence getCurrentContentTitle​( player)
        Specified by:
        getCurrentContentTitle in interface
      • getCurrentContentText

        public java.lang.CharSequence getCurrentContentText​( player)
        Specified by:
        getCurrentContentText in interface
      • createCurrentContentIntent

        public createCurrentContentIntent​( player)
        Specified by:
        createCurrentContentIntent in interface
      • getCurrentLargeIcon

        public getCurrentLargeIcon​( player,
        Specified by:
        getCurrentLargeIcon in interface