setCancelButtonId

fun setCancelButtonId(cancelButtonId: Int): NotificationStyle

Specify the view id of the cancel button that appears in the setBigContentView on pre-Lollipop devices to work around a bug with android persistent notifications not going away.

This cancel button is made visible only on pre-Lollipop devices and only when the player is not playing music.

Return

NotificationStyle so methods can be chained

Parameters

cancelButtonId

view id of the cancel button.