Hi,
I tried to change the TimeOut of a notification of the AutoCancel. I use code from:
https://www.b4x.com/android/forum/threads/nb6-class-additional-functions.104319/
and add to NB6:
My code:
but it don't seems to work. Still AutoCancel after normal timeout.
Can it be done and how?
BR, André
I tried to change the TimeOut of a notification of the AutoCancel. I use code from:
https://www.b4x.com/android/forum/threads/nb6-class-additional-functions.104319/
and add to NB6:
B4X:
'Specifies a duration in milliseconds after which this notification should be canceled, if it is not already canceled.
'Used in SDK > 25 only
Public Sub TimeoutAfter(durationMs As Long) As NB6
If IsChannel Then
NotificationBuilder.RunMethod("setTimeoutAfter", Array(durationMs))
End If
Return Me
End Sub
My code:
B4X:
nb.TimeoutAfter(18000)
but it don't seems to work. Still AutoCancel after normal timeout.
Can it be done and how?
BR, André