This is a very short question:
Suppose I have an immersive-screen Activity in the app, and I wish to give the users a choice of seeing heads-up notifications of incoming calls, because such a thing could cause accidental touches on the notifications (causing accidental replying or rejecting of calls), or because it's just annoying.
Is such a thing possible?
Even as a user, I've noticed that it's possible only if I enable do-not-disturb mode, and even then, I need to customize it so that it will be applied to such notifications.
Maybe there is a way to temporary enable do-not-disturb (as shown here), within the app? Or is there a better, alternative way ?