XBMC.Notification noise and click?
#1
Greetings,

Is there a way to disable the notification noise occurs when XBMC.Notification is called?
And is it possible to have an "onclick"-type action for the notification?

Thanks!
Reply
#2
(2015-07-30, 21:08)jgauthier Wrote: Greetings,

Is there a way to disable the notification noise occurs when XBMC.Notification is called?

Short answer - yes: http://romanvm.github.io/xbmcstubs/docs/...tification

Quote:And is it possible to have an "onclick"-type action for the notification?

What is this exactly?
Reply
#3
How are you planning to "click" on the notification. If you need some interaction with the user, would you be better using an "ok" or "yes/no" dialog?

If the interaction is optional then you may want to use a timeout but I don't think the "ok" dialog has this. The "yes/no" dialog, however, has an autoclose parameter.
http://romanvm.github.io/xbmcstubs/docs/...html#yesno
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#4
In my application, I am using the notifications to inform the user of certain items. In this particular case it's a musical track change.

This is eventually intended for a touch only display. So, it would be a nice user interaction to be able to tab the notification and have it bring me into the music interface I am building.
Reply
#5
[quote='Roman_V_M' pid='2067752' dateline='1438339003']

Short answer - yes: http://romanvm.github.io/xbmcstubs/docs/...tification

[quote]


Waiit, are you sure? I read what you posted, and it looks like what I was previously looking for and never found.
According to the wiki, there isn't an option for sound:

http://kodi.wiki/view/List_of_Built_In_Functions

Now, when I attempted to add that parameter my application went down hill.

I've tried the following basically:

XBMC.Notification("123","456","noalbum.png")
No image. Sound
XBMC.Notification("123","456",5000,"noalbum.png")
Image, Sound
XBMC.Notification("123","456",5000,"noalbum.png", False)
No Image. Sound.
XBMC.Notification("123","456",False,5000,noalbum.png")
No image, sound...

and on and on. I cannot find a combination that does all three.
The page you posted shows icon=, sound=, time=

Using that format, nothing works at all.
Reply
#6
[quote='jgauthier' pid='2068607' dateline='1438432961']
[quote='Roman_V_M' pid='2067752' dateline='1438339003']

Short answer - yes: http://romanvm.github.io/xbmcstubs/docs/...tification

Quote:Waiit, are you sure?

No, I'm joking. Confused Kodi has several APIs to interact with and those APIs have some overlapping capabilities. E. g. I know at least 3 ways to display a pop-up notification using different APIs, but I personally prefer xbmcgui.Dialog().notification which I've suggested above.
Reply
#7
That was my error. I didn't realize you were pointing me to a DIFFERENT method of calling notifications.
You're correct. The API through dialog() works great. Thanks for taking the time to make that clear.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC.Notification noise and click?0