Example #1
0
 public void OnContact()
 {
     UM_ShareUtility.SendMail("Fast Fours Support", "Hello Fast Fours Support. <br><br> Please tell us what type of device you have? and how we can help you.", "*****@*****.**");
 }
Example #2
0
    void OnGUI()
    {
        float StartY = 20;
        float StartX = 10;

        GUI.Label(new Rect(StartX, StartY, Screen.width, 40), "Twitter", style);

        StartY += 25;
        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Post"))
        {
            UM_ShareUtility.TwitterShare("Titter posting test");
        }

        StartX += 170;
        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Post Screehshot"))
        {
            StartCoroutine(PostTwitterScreenshot());
        }


        StartY += 55;
        StartX  = 10;
        GUI.Label(new Rect(StartX, StartY, Screen.width, 40), "Facebook", style);


        StartY += 25;
        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Post"))
        {
            UM_ShareUtility.FacebookShare("Facebook posting test");
        }

        StartX += 170;

        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Post Screehshot"))
        {
            StartCoroutine(PostFBScreenshot());
        }


        StartX += 170;

        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Post Image"))
        {
            UM_ShareUtility.FacebookShare("Hello world", textureForPost);
        }



        StartY += 55;
        StartX  = 10;
        GUI.Label(new Rect(StartX, StartY, Screen.width, 40), "Mail", style);


        StartY += 25;
        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Send Mail"))
        {
            UM_ShareUtility.SendMail("My E-mail Subject", "This is my text to share", "[email protected], [email protected]");
        }

        StartX += 170;

        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Send Mail with image"))
        {
            UM_ShareUtility.SendMail("My E-mail Subject", "This is my text to share <br> <strong> html text </strong>", "[email protected], [email protected]", textureForPost);
        }



        StartY += 55;
        StartX  = 10;
        GUI.Label(new Rect(StartX, StartY, Screen.width, 40), "Native Sharing", style);


        StartY += 25;
        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Text"))
        {
            UM_ShareUtility.ShareMedia("Title", "Some text to share");
        }

        StartX += 170;

        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Screehshot"))
        {
            StartCoroutine(PostScreenshot());
        }

        StartY += 55;
        StartX  = 10;
        GUI.Label(new Rect(StartX, StartY, Screen.width, 40), "Whatsapp", style);

        StartY += 25;
        if (GUI.Button(new Rect(StartX, StartY, 150, 50), "Start Share"))
        {
            UM_ShareUtility.WhatsappShare("This is my text to share", textureForPost);
        }
    }
Example #3
0
 public void OnContact()
 {
     UM_ShareUtility.SendMail("Hello", "market://details?id=com.peakrainbow.missionday", "*****@*****.**");
 }