setMediaSession

Links the player notification to a given MediaSession.

Note: don't call setMediaDescriptionAdapter after this method, otherwise it won't have any effect.

Return

This Builder instance for chaining.

Parameters

mediaSession

The MediaSession to link with the notification.