public void Share() { listenerObject = new GameObject(LISTENER_OBJECT_NAME); AN_PlusShareListener listener = listenerObject.AddComponent <AN_PlusShareListener>(); listener.AttachBuilderCallback(PlusShareCallback); List <string> strImgs = new List <string>(); foreach (Texture2D image in images) { byte[] val = image.EncodeToPNG(); strImgs.Add(System.Convert.ToBase64String(val)); } images.Clear(); AN_SocialSharingProxy.GooglePlusShare(message, strImgs.ToArray()); }
public static void SendMail(string caption, string message, string subject, string recipients, Texture2D texture = null) { CheckAndCreateInstance(); if (texture != null) { byte[] val = texture.EncodeToPNG(); string mdeia = System.Convert.ToBase64String(val); AN_SocialSharingProxy.SendMailWithImage(caption, message, subject, recipients, mdeia, (int)AndroidNativeSettings.Instance.ImageFormat, AndroidNativeSettings.Instance.SaveCameraImageToGallery); } else { AN_SocialSharingProxy.SendMail(caption, message, subject, recipients); } }
public static void StartShareIntentWithSubject(string caption, string message, string subject, string packageNamePattern = "") { AN_SocialSharingProxy.StartShareIntent(caption, message, subject, packageNamePattern); }
public static void StartGooglePlusShare(string text, Texture2D texture = null) { CheckAndCreateInstance(); AN_SocialSharingProxy.StartGooglePlusShareIntent(text, texture == null ? string.Empty : System.Convert.ToBase64String(texture.EncodeToPNG())); }
public static void StartVideoShareIntent(string videoFilePath, string message, string caption) { CheckAndCreateInstance(); AN_SocialSharingProxy.StartVideoShareIntent(videoFilePath, message, string.Empty, caption); }
public static void ShareTwitterGif(string gifPath, string message) { AN_SocialSharingProxy.ShareTwitterGif(gifPath, message); }
public static void GetLaunchDeepLinkId() { AN_SocialSharingProxy.GetLaunchDeepLinkId(); }