Difference between revisions of "Share Event.SHARE EXPORT RESULT"
From GiderosMobile
(Created page with "'''Available since:''' Gideros 2024.1<br/> '''Value:''' fileshareExportResult<br/> '''Defined by:''' Share<br/> === Description === This Event is dispatched after some da...") |
(No difference)
|
Latest revision as of 20:28, 20 February 2025
Available since: Gideros 2024.1
Value: fileshareExportResult
Defined by: Share
Description
This Event is dispatched after some data were shared.
Example
require "Share"
local share = Share.new()
share:export("Hello Gideros!", "text/plain" , "hello.txt") -- data, MIME type, file name
share:addEventListener(Event.SHARE_EXPORT_RESULT, function(e)
print("share:export callback:", e and e.status)
end)
Event properties
status: (number) the result status, 1 = success