Exemplo n.º 1
0
    public static void CallSocialShareAdvanced(string subject, string message, string img = "", string url = "")
    {
#if UNITY_IOS
        if (!string.IsNullOrEmpty(img))
        {
            SocialSharingStruct conf = new SocialSharingStruct
            {
                subject = subject,
                text    = message,
                url     = !string.IsNullOrEmpty(url) ? url : shareUrl,
                image   = img
            };
            showSocialSharing(ref conf);
        }
        else
        {
            ConfigStruct conf = new ConfigStruct
            {
                title   = subject,
                message = message
            };
            showAlertMessage(ref conf);
        }
#endif
    }
Exemplo n.º 2
0
    public static void CallSocialShareAdvanced(string defaultTxt, string subject, string url)
    {
        SocialSharingStruct conf = new SocialSharingStruct();

        conf.text    = defaultTxt;
        conf.url     = url;
        conf.subject = subject;
        showSocialSharing(ref conf);
    }
Exemplo n.º 3
0
    public static void ShareIOS(string body, string[] filePaths)
    {
        SocialSharingStruct conf = new SocialSharingStruct();

        conf.text = body;
        string paths = string.Join(";", filePaths);

        conf.filePaths = paths;
        showSocialSharing(ref conf);
    }
    public static void CallSocialShareAdvanced(string defaultTxt, string subject, string url, string img)
    {
        SocialSharingStruct conf = new SocialSharingStruct();
        conf.text = defaultTxt;
        conf.url = url;
        conf.image = img;
        conf.subject = subject;

        showSocialSharing(ref conf);
    }
Exemplo n.º 5
0
        private void Share(string subject, string text, string[] filePaths)
        {
            var conf = new SocialSharingStruct
            {
                subject   = subject,
                text      = text,
                filePaths = string.Join(";", filePaths),
            };

            showSocialSharing(ref conf);
        }
Exemplo n.º 6
0
    public static void CallSocialShareAdvanced(string defaultTxt, string subject, string url, string img)
    {
        Debug.Log("Called share advanced");
        SocialSharingStruct conf = new SocialSharingStruct();

        //conf.text = defaultTxt;
        conf.url   = url;
        conf.image = img;
        //conf.subject = subject;

        showSocialSharing(ref conf);
    }
Exemplo n.º 7
0
    public static void CallSocialShareAdvanced(string defaultTxt, string subject, string url, string img)
    {
        SocialSharingStruct conf = new SocialSharingStruct();

        conf.text    = defaultTxt;
        conf.url     = url;
        conf.image   = img;
        conf.subject = subject;

        #if !UNITY_EDITOR
        showSocialSharing(ref conf);
        #endif
    }
Exemplo n.º 8
0
    public static void ShareIOS(string body, string filePath)
    {
        SocialSharingStruct conf = new SocialSharingStruct();

        conf.text = body;

        if (filePath.Length != 0)
        {
            conf.filePaths = filePath;
        }

        showSocialSharing(ref conf);
    }
Exemplo n.º 9
0
    public static void CallSocialShareAdvanced(string defaultTxt, string subject, string url, string img)
    {
        SocialSharingStruct conf = new SocialSharingStruct();

        conf.text = defaultTxt;
        if (url != null)
        {
            conf.url   = url;
            conf.image = img;
        }
        conf.subject = subject;

        showSocialSharing(ref conf);
    }
Exemplo n.º 10
0
    public static void ShareIOS(string body, string subject, string url, string[] filePaths)
    {
        SocialSharingStruct conf = new SocialSharingStruct();

        conf.text = body;
        string paths = string.Join(";", filePaths);

        if (string.IsNullOrEmpty(paths))
        {
            paths = url;
        }
        else if (!string.IsNullOrEmpty(url))
        {
            paths += ";" + url;
        }
        conf.filePaths = paths;
        conf.subject   = subject;

        showSocialSharing(ref conf);
    }
Exemplo n.º 11
0
 [DllImport("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);
Exemplo n.º 12
0
 private static extern void showSocialSharing(ref SocialSharingStruct conf);
Exemplo n.º 13
0
 private static extern void showSocialSharing(ref SocialSharingStruct conf);
Exemplo n.º 14
0
	[DllImport ("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);