<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Share_Event.SHARE_IMPORT_RESULT</id>
	<title>Share Event.SHARE IMPORT RESULT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Share_Event.SHARE_IMPORT_RESULT"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Share_Event.SHARE_IMPORT_RESULT&amp;action=history"/>
	<updated>2026-11-17T21:40:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Share_Event.SHARE_IMPORT_RESULT&amp;diff=24360&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;&#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2024.1&lt;br/&gt; &#039;&#039;&#039;Value:&#039;&#039;&#039; fileshareImportResult&lt;br/&gt; &#039;&#039;&#039;Defined by:&#039;&#039;&#039; Share&lt;br/&gt;  === Description === This Event is dispatched after some da...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Share_Event.SHARE_IMPORT_RESULT&amp;diff=24360&amp;oldid=prev"/>
		<updated>2025-02-20T18:38:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2024.1&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Value:&amp;#039;&amp;#039;&amp;#039; fileshareImportResult&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Defined by:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/Share&quot; title=&quot;Share&quot;&gt;Share&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === This Event is dispatched after some da...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2024.1&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Value:&amp;#039;&amp;#039;&amp;#039; fileshareImportResult&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Defined by:&amp;#039;&amp;#039;&amp;#039; [[Share]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
This Event is dispatched after some data were received.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
require &amp;quot;Share&amp;quot;&lt;br /&gt;
&lt;br /&gt;
local share = Share.new()&lt;br /&gt;
&lt;br /&gt;
share:import(&amp;quot;*/*&amp;quot; ,&amp;quot;jpg&amp;quot;) -- MIME type, extension&lt;br /&gt;
&lt;br /&gt;
local function decodeFileData(e)&lt;br /&gt;
	print(&amp;quot;share:import callback:&amp;quot;, e and e.status, e and e.mime, e and e.name)&lt;br /&gt;
	if e and e.status and e.status &amp;gt; 0 then&lt;br /&gt;
		print(&amp;quot;Got Data:&amp;quot;, #e.data)&lt;br /&gt;
	else&lt;br /&gt;
		print(&amp;quot;Import failed&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	share:removeEventListener(Event.SHARE_IMPORT_RESULT, decodeFileData)&lt;br /&gt;
end&lt;br /&gt;
share:addEventListener(Event.SHARE_IMPORT_RESULT, decodeFileData)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Event properties ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;name:&amp;#039;&amp;#039;&amp;#039; (string) the result file name&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;mime:&amp;#039;&amp;#039;&amp;#039; (string) the result MIME type&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;data:&amp;#039;&amp;#039;&amp;#039; (varies) the result data (String or data)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;status:&amp;#039;&amp;#039;&amp;#039; (number) the result status, &amp;#039;&amp;#039;1&amp;#039;&amp;#039; = success&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Share}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>