Difference between revisions of "NotificationManager:getScheduledNotifications"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Retrieves the lua table of scheduled local notifications, that were not yet displayed. The table uses notification ids as keys and table with information about notification as value.</translate>
 
<translate>Retrieves the lua table of scheduled local notifications, that were not yet displayed. The table uses notification ids as keys and table with information about notification as value.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  NotificationManager:getScheduledNotifications()
 
  NotificationManager:getScheduledNotifications()
 
</source>
 
</source>
 
=== <translate>Examples</translate> ===
 
=== <translate>Examples</translate> ===
 
'''Here is an example structure of returned table:'''<br/>
 
'''Here is an example structure of returned table:'''<br/>
<source lang="lua">Table {
+
<syntaxhighlight lang="lua">Table {
 
[2] => Table {
 
[2] => Table {
 
{
 
{

Revision as of 14:30, 13 July 2023


Available since: Gideros 2011.6
Class: NotificationManager

Description

Retrieves the lua table of scheduled local notifications, that were not yet displayed. The table uses notification ids as keys and table with information about notification as value. <syntaxhighlight lang="lua">

NotificationManager:getScheduledNotifications()

</source>

Examples

Here is an example structure of returned table:
<syntaxhighlight 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>