setVisibility

fun setVisibility(visibility: Int)

Sets the visibility of the notification which determines whether and how the notification is shown when the device is in lock screen mode.

See setVisibility.

Parameters

visibility

The visibility which must be one of VISIBILITY_PUBLIC, VISIBILITY_PRIVATE or VISIBILITY_SECRET.