Mrphone Member May 3, 2020 #1 Hi again I want to cancel the notification in my program .. but NB6 does not have the n.Cancel(1) command.
Hi again I want to cancel the notification in my program .. but NB6 does not have the n.Cancel(1) command.
Erel B4X founder Staff member Licensed User Longtime User May 4, 2020 #2 NB6 is a builder tool. It builds notifications. Once the notification has been built you should use it: Code: Copy Dim n As Notification = nb6.Build(...) n.Cancel(1) Upvote 0
NB6 is a builder tool. It builds notifications. Once the notification has been built you should use it: Code: Copy Dim n As Notification = nb6.Build(...) n.Cancel(1)
Andris Active Member Licensed User Longtime User May 4, 2020 #3 Erel said: NB6 is a builder tool. It builds notifications. Once the notification has been built you should use it: Code: Copy Dim n As Notification = nb6.Build(...) n.Cancel(1) Click to expand... Shouldn't I be able to cancel an existing notification upon UserClosed in Activity_Pause? Desn't seem to work - it's still on the notifications display. B4X: Copy Sub Activity_Pause (UserClosed As Boolean) If UserClosed Then activenotif.Cancel(1) 'activnotif is a global variable, the result of an NB6 build End If End Sub Upvote 0
Erel said: NB6 is a builder tool. It builds notifications. Once the notification has been built you should use it: Code: Copy Dim n As Notification = nb6.Build(...) n.Cancel(1) Click to expand... Shouldn't I be able to cancel an existing notification upon UserClosed in Activity_Pause? Desn't seem to work - it's still on the notifications display. B4X: Copy Sub Activity_Pause (UserClosed As Boolean) If UserClosed Then activenotif.Cancel(1) 'activnotif is a global variable, the result of an NB6 build End If End Sub
Erel B4X founder Staff member Licensed User Longtime User May 5, 2020 #4 Please start a new thread and provide more information. The small details are important. Upvote 0
Andris Active Member Licensed User Longtime User May 5, 2020 #5 Erel said: Please start a new thread and provide more information. The small details are important. Click to expand... Will do. Sorry for putting it here ... thought it might relate. Upvote 0
Erel said: Please start a new thread and provide more information. The small details are important. Click to expand... Will do. Sorry for putting it here ... thought it might relate.