Difference between revisions of "NotificationManager:getLocalNotifications"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
  NotificationManager:getLocalNotifications()
 
  NotificationManager:getLocalNotifications()
</source>
+
</syntaxhighlight>
 
=== <translate>Examples</translate> ===
 
=== <translate>Examples</translate> ===
 
'''Here is an example structure of returned table:'''<br/>
 
'''Here is an example structure of returned table:'''<br/>
Line 27: Line 27:
 
[sound] => ""
 
[sound] => ""
 
}
 
}
}</source>
+
}</syntaxhighlight>

Latest revision as of 15:31, 13 July 2023


Available since: Gideros 2011.6
Class: NotificationManager

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] => ""
		}
}