whatsappshare

Share text & image on Whatsapp. Only Android
https://github.com/nicolastuka/WhatsappShare

To install, run:

haxelib install whatsappshare 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

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

Contributors
nicolastuka
Version
1.0.0
Published
8 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂