SetInForeground options explanaition

83 views
Skip to first unread message

Michael

unread,
Apr 18, 2019, 12:03:51 PM4/18/19
to DroidScript
According to release 1.70 announcment, there is app/svc.SetInForeground( title,text,largeIcon,smallIcon,importance ) method. I am wondering what are available values for "importance" parameter? And what is the meaning of that parameter?

Steve Garman

unread,
Apr 18, 2019, 5:26:11 PM4/18/19
to DroidScript
importance can be 'high', 'low', 'min', 'none'

It decides on how much attention the notification tries to attract.

You can find the uses of the various values somewhere in https://developer.android.com/reference/android/app/NotificationManager and find-in-page "IMPORTANCE_HIGH"

Michael

unread,
Apr 19, 2019, 3:04:48 AM4/19/19
to DroidScript
Thank you for your response Steve. It is very helpful to me.
Reply all
Reply to author
Forward
0 new messages