public static void SendMail(string subject, string body, string recipients, Texture2D texture)
    {
        switch (Application.platform)
        {
        case RuntimePlatform.Android:
            AndroidSocialGate.SendMail("Send Mail", body, subject, recipients, texture);
            break;

        case RuntimePlatform.IPhonePlayer:
            IOSSocialManager.instance.SendMail(subject, body, recipients, texture);
            break;
        }
    }
    public static void SendMail(string subject, string body, string recipients, Texture2D[] textures)
    {
        switch (Application.platform)
        {
        case RuntimePlatform.Android:
            AndroidSocialGate.SendMail("Send Mail", body, subject, recipients, textures);
            break;

        case RuntimePlatform.IPhonePlayer:
            //TODO: Add iOS platform implementation here
            break;

#if UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2
        case RuntimePlatform.WP8Player:
#else
        case RuntimePlatform.WSAPlayerARM:
        case RuntimePlatform.WSAPlayerX64:
        case RuntimePlatform.WSAPlayerX86:
#endif
            break;
        }
    }
    public static void SendMail(string subject, string body, string recipients, Texture2D texture)
    {
        switch (Application.platform)
        {
        case RuntimePlatform.Android:
            AndroidSocialGate.SendMail("Send Mail", body, subject, recipients, texture);
            break;

        case RuntimePlatform.IPhonePlayer:
            IOSSocialManager.Instance.SendMail(subject, body, recipients, texture);
            break;

#if UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2
        case RuntimePlatform.WP8Player:
#else
        case RuntimePlatform.WSAPlayerARM:
        case RuntimePlatform.WSAPlayerX64:
        case RuntimePlatform.WSAPlayerX86:
#endif
            break;
        }
    }
 public void ShareMail()
 {
     AndroidSocialGate.SendMail("Hello Share Intent", "This is my text to share", "My E-mail Subject", "[email protected], [email protected]", shareTexture);
 }
 public void OnAskQuestionsClick()
 {
     AndroidSocialGate.SendMail("Send Mail", "", "Android Native Plugin Question", "*****@*****.**");
 }
Exemple #6
0
 public void SendBug()
 {
     AndroidSocialGate.SendMail("Send Mail", "", "Hey Stan, I found a bug", "*****@*****.**");
 }