love2d / love

LÖVE is an awesome 2D game framework for Lua.
https://love2d.org
Other
5.1k stars 401 forks source link

Share Button #1487

Closed slime73 closed 4 years ago

slime73 commented 5 years ago

Original report by Ivan Azoyan (Bitbucket: azoyan, GitHub: azoyan).


Add "Share" intent for Android in iOS like other engines https://www.defold.com/community/projects/83156/

slime73 commented 5 years ago

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


I’m not sure if this really fits into LÖVE’s core APIs. Maybe as a module?

slime73 commented 5 years ago

Original comment by Ivan Azoyan (Bitbucket: azoyan, GitHub: azoyan).


Maybe. But this feature should be for competitiveness with other engines.

slime73 commented 5 years ago

Original comment by Miku AuahDark (Bitbucket: AuahDark, GitHub: MikuAuahDark).


I even think it's more suitable if it's in love.system like love.system.share(FileData|string) function.

slime73 commented 5 years ago

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


Maybe. But this feature should be for competitiveness with other engines.

It looks like neither Unity nor Defold provides this functionality themselves, there are third party plugins for those engines which do it. love doesn’t have a centralized plugin repository like those engines, but you can still make a library that calls C / Objective-C / JNI code either by making a C module that exports Lua APIs, or by using LuaJIT’s FFI.

slime73 commented 5 years ago

Original comment by Ivan Azoyan (Bitbucket: azoyan, GitHub: azoyan).


As module client code should be like:

require "share"
share.text(text)
share.image(bytes, [text])
share.file(path, [text])

Ok. I am not guru to self create. But not really needed feature in any case