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 }
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); }
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); }
private void Share(string subject, string text, string[] filePaths) { var conf = new SocialSharingStruct { subject = subject, text = text, filePaths = string.Join(";", filePaths), }; showSocialSharing(ref conf); }
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); }
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 }
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); }
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); }
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); }
[DllImport("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);
private static extern void showSocialSharing(ref SocialSharingStruct conf);
private static extern void showSocialSharing(ref SocialSharingStruct conf);
[DllImport ("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);