Toolbox
Toggle table of contents
android
Target filter
android
Switch theme
Search in API
Skip to content
Toolbox
core
/
com.michaelflisar.toolbox
/
NotificationUtil
/
createChannelIfNecessary
create
Channel
If
Necessary
android
fun
createChannelIfNecessary
(
context
:
Context
,
channelName
:
String
,
channelId
:
String
,
importance
:
Int
=
NotificationManagerCompat.IMPORTANCE_HIGH
,
sound
:
Boolean
=
true
,
vibrate
:
Boolean
=
true
,
lights
:
Boolean
=
true
)
:
Boolean