public void NativeShareText(string text, ShareCallBackDelegate shareCallBack = null) { this.shareCallBack = shareCallBack; #if UNITY_IOS && !UNITY_EDITOR IOS_NativeShareUrl(text); #elif UNITY_ANDROID && !UNITY_EDITOR ShareAndroidText(text, ""); #else ScoreTheGameManager.Instance.GoToStoreScore(); NativeShareSuccess(""); #endif }
public void NativeShare(string text, Texture2D texture, ShareCallBackDelegate shareCallBack = null, string screenShotPath = null) { this.shareCallBack = shareCallBack; Debug.Log("NativeShare"); #if UNITY_IOS && !UNITY_EDITOR Debug.Log("NativeShare: Texture"); byte[] val = texture.EncodeToPNG(); string bytesString = System.Convert.ToBase64String(val); _GJC_NativeShare(text, bytesString); #elif UNITY_ANDROID && !UNITY_EDITOR ShareAndroid(text, "", "", screenShotPath, "image/png", true, ""); #else NativeShareSuccess(""); #endif }
public void Share(string text, Texture2D texture, ShareCallBackDelegate shaeCallback = null, string screenShotPath = null) { NativeSocialShareManager.Instance.NativeShare(text, texture, shaeCallback ?? FinishedSharing, screenShotPath); }
public void ShareText(string text, ShareCallBackDelegate shaeCallback = null) { NativeSocialShareManager.Instance.NativeShareText(text, shaeCallback ?? FinishedSharing); }