You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2019. It is now read-only.
I have an app that lets users take screenshots and then send them however the picture preview is showing the wrong picture after the first one.
Use twitter sample, add code to set button image color red after taking the screenshot example:
`//reference to the image on the button
public UnityEngine.UI.Image img;
public void LoginCompleteWithCompose(TwitterSession session) {
ScreenCapture.CaptureScreenshot("Screenshot.png");
UnityEngine.Debug.Log ("Screenshot location=" + Application.persistentDataPath + "/Screenshot.png");
string imageUri = "file://" + Application.persistentDataPath + "/Screenshot.png";
Twitter.Compose (session, imageUri, "Welcome to", new string[]{"#TwitterKitUnity"},
(string tweetId) => { UnityEngine.Debug.Log ("Tweet Success, tweetId=" + tweetId); },
(ApiError error) => { UnityEngine.Debug.Log ("Tweet Failed " + error.message); },
() => { Debug.Log ("Compose cancelled"); }
);
img.color = Color.red;
}`
After taking the first screenshot close the dialogue and take a new one with the new button color. It shows an image from the previous dialogue.
Once the picture is tweeted the right screenshot is uploaded however I would like the screenshot to be previewed in the dialogue before it is posted
SDK Version: 3.2.1
Unity Version: 2017.3.1
Device name and OS version:
Xperia XA1 Ultra (g3223)
Android 7.0
The text was updated successfully, but these errors were encountered:
I have an app that lets users take screenshots and then send them however the picture preview is showing the wrong picture after the first one.
Use twitter sample, add code to set button image color red after taking the screenshot example:
`//reference to the image on the button
public UnityEngine.UI.Image img;
public void LoginCompleteWithCompose(TwitterSession session) {
ScreenCapture.CaptureScreenshot("Screenshot.png");
UnityEngine.Debug.Log ("Screenshot location=" + Application.persistentDataPath + "/Screenshot.png");
string imageUri = "file://" + Application.persistentDataPath + "/Screenshot.png";
Twitter.Compose (session, imageUri, "Welcome to", new string[]{"#TwitterKitUnity"},
(string tweetId) => { UnityEngine.Debug.Log ("Tweet Success, tweetId=" + tweetId); },
(ApiError error) => { UnityEngine.Debug.Log ("Tweet Failed " + error.message); },
() => { Debug.Log ("Compose cancelled"); }
);
img.color = Color.red;
}`
After taking the first screenshot close the dialogue and take a new one with the new button color. It shows an image from the previous dialogue.
Once the picture is tweeted the right screenshot is uploaded however I would like the screenshot to be previewed in the dialogue before it is posted
Xperia XA1 Ultra (g3223)
Android 7.0
The text was updated successfully, but these errors were encountered: