WhatsappShare
Simple share text and image from Haxe to WhatsApp on ANDROID.
Part of the code of this extension is based on the extension-share of fbricker.
Installation
· haxelib install whatsappshare
Simple Example Use Extension (only text):
import extension.whatsappshare.WhatsappShare;
class SimpleExample
{
function AnyFuntion():Void
{
if (WhatsappShare.SendMessage("Hello! it´s a message from WhatsApp")
{
trace("It´s Working!");
}
else
{
trace("Not Working... :(");
}
}
}
Advanced Example Use Extension (text & image):
import extension.whatsappshare.WhatsappShare;
class SimpleExampleImage
{
function AnyFuntion():Void
{
if (WhatsappShare.SendMessage("Hello! it´s a message from WhatsApp", openfl.Assets.getBitmapData("assets/images/image.png"))
{
trace("It´s Working!");
}
else
{
trace("Not Working... :(");
}
}
}
License
The MIT License (MIT) - LICENSE.md
Copyright © 2018 MilköGames (http://www.milkogames.xyz)
Author: Nicolás Capel