setStopAction

fun setStopAction(@Nullable stopAction: String)

Sets the name of the action to be used as stop action to cancel the notification. If null is passed the stop action is not displayed.

Parameters

stopAction

The name of the stop action which must be ACTION_STOP or an action provided by the CustomActionReceiver. null to omit the stop action.