Difference between revisions of "NotificationManager:getLocalNotifications"
From GiderosMobile
Line 6: | Line 6: | ||
NotificationManager:getLocalNotifications() | NotificationManager:getLocalNotifications() | ||
</source> | </source> | ||
+ | === Examples === | ||
+ | '''Here is an example structure of returned table:'''<br/> | ||
+ | <source lang="lua">Table { | ||
+ | [2] => Table { | ||
+ | { | ||
+ | [message] => Do you see me? | ||
+ | [title] => Test from Server1 | ||
+ | [id] => 2 | ||
+ | [number] => 0 | ||
+ | [sound] => "somesound.wav" | ||
+ | } | ||
+ | [10] => Table { | ||
+ | { | ||
+ | [message] => Do you see me? | ||
+ | [title] => Test from Server2 | ||
+ | [id] => 10 | ||
+ | [number] => 0 | ||
+ | [sound] => "" | ||
+ | } | ||
+ | }</source> |
Revision as of 10:44, 23 August 2018
Available since: Gideros 2011.6
Description
Retrieves the lua table of already displayed local notifications. The table uses notification ids as keys and table with information about notification as value.
NotificationManager:getLocalNotifications()
Examples
Here is an example structure of returned table:
Table {
[2] => Table {
{
[message] => Do you see me?
[title] => Test from Server1
[id] => 2
[number] => 0
[sound] => "somesound.wav"
}
[10] => Table {
{
[message] => Do you see me?
[title] => Test from Server2
[id] => 10
[number] => 0
[sound] => ""
}
}