Difference between revisions of "NotificationManager:getLocalNotifications"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Retrieves the lua table of already displayed local notifications. The table uses notification ids as k...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
Retrieves the lua table of already displayed local notifications. The table uses notification ids as keys and table with information about notification as value.
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/NotificationManager|NotificationManager]]<br/>
<source lang="lua">
+
=== <translate>Description</translate> ===
= NotificationManager:getLocalNotifications()
+
<translate>Retrieves the lua table of already displayed local notifications. The table uses notification ids as keys and table with information about notification as value.</translate>
</source>
+
<syntaxhighlight lang="lua">
 +
NotificationManager:getLocalNotifications()
 +
</syntaxhighlight>
 +
=== <translate>Examples</translate> ===
 +
'''Here is an example structure of returned table:'''<br/>
 +
<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] => ""
 +
}
 +
}</syntaxhighlight>

Latest revision as of 14: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] => ""
		}
}