예제 #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
    }
예제 #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);
    }
예제 #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);
    }
예제 #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);
        }
예제 #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);
    }
예제 #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
    }
예제 #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);
    }
예제 #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);
    }
예제 #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);
    }
예제 #11
0
 [DllImport("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);
예제 #12
0
 private static extern void showSocialSharing(ref SocialSharingStruct conf);
예제 #13
0
 private static extern void showSocialSharing(ref SocialSharingStruct conf);
예제 #14
0
	[DllImport ("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);