public void ShareImage() { int ssid = screenShotId - 1; string path = Application.persistentDataPath + "/" + PlayerPrefs.GetString("SiteName") + "_" + ssid + ".png"; sharePlugin.ShareImage(PlayerPrefs.GetString("SiteName"), "Latitude: " + latitude + "\n" + "Longitude: " + longitude, path); }
public void ShareImage() { Application.CaptureScreenshot("Screenshot.png"); Debug.Log("Saved screenshot to: " + Application.persistentDataPath + "/Screenshot.png"); SharePlugin.ShareImage("Send image...", Application.persistentDataPath + "/Screenshot.png", "png"); }
public void ShareImage() { //if you want to save on Application.persistentDataPath, file on this path is remove when app is uninstal //string screenShotName = "AndroidUltimateScreenShot.png"; //string path = Application.persistentDataPath + "/" + screenShotName; string screenShotName = "AUPScreenShot.jpg"; string folderPath = utilsPlugin.CreateFolder("MyScreenShots", 0); string path = ""; if (!folderPath.Equals("", StringComparison.Ordinal)) { // test create no media file string nomediaPath = utilsPlugin.WriteNoMediaFile(folderPath); Debug.Log(" nomediaPath " + nomediaPath); utilsPlugin.ShowToast(" nomediaPath " + nomediaPath); path = folderPath + "/" + screenShotName; //note: we added new required variable to pass which is screenShotName to determined what image format to use //jpg or png, if format is not given set default to jpg format StartCoroutine(AUP.Utils.TakeScreenshot(path, screenShotName)); sharePlugin.ShareImage("subject", "subjectContent", path); } //test folderPath = utilsPlugin.CreateFolder(".tg_images", 0); if (!folderPath.Equals("", StringComparison.Ordinal)) { string nomediaPath = utilsPlugin.WriteNoMediaFile(folderPath); Debug.Log("2nd nomediaPath " + nomediaPath); utilsPlugin.ShowToast("2nd nomediaPath " + nomediaPath); } }
private void ShareImage() { if (!texturePath.Equals("", StringComparison.Ordinal)) { sharePlugin.ShareImage("ExistingTexture", "ExistingTextureContent", texturePath); } else { Debug.Log("[CameraDemo] texturePath is empty"); } }
public void ShareImage() { if (!imagePath.Equals("", StringComparison.Ordinal)) { sharePlugin.ShareImage("MyPictureSubject", "MyPictureSubjectContent", imagePath); UpdateStatus("Sharing Picture"); } else { Debug.Log("[CameraDemo] imagepath is empty"); UpdateStatus("can't image path is empty"); } }
private void OnPictureSaved(Picture picture) { //Share SharePlugin.ShareImage("Share picture...", picture.TextureFilePath, "png"); //Hide window m_PictureTakenPanel.Hide(); if (m_PictureCamera != null) { m_PictureCamera.PictureSavedEvent -= OnPictureSaved; } }
public void Share() { SharePlugin.ShareImage("Share picture...", m_Picture.TextureFilePath, "png"); }