Пример #1
0
 /// <summary>
 /// Show Twitter composer
 /// <param name="session">User’s session from Login</param>
 /// <param name="imageUri">uri of image to include in tweet</param>
 /// <param name="text">text to tweet to pre-fill</param>
 /// <param name="hashtags">hashtags to pre-fill</param>
 /// <param name="successCallback">Callback to call on success</param>
 /// <param name="failureCallback">Callback to call on failure</param>
 /// <param name="cancelCallback">Callback to call on cancel</param>
 /// </summary>
 public static void Compose(TwitterSession session, String imageUri, String text, string[] hashtags = null, Action <string> successCallback = null, Action <ApiError> failureCallback = null, Action cancelCallback = null)
 {
     twitterGameObject.GetComponent <TwitterComponent> ().tweetSuccessAction = successCallback;
     twitterGameObject.GetComponent <TwitterComponent> ().tweetFailureAction = failureCallback;
     twitterGameObject.GetComponent <TwitterComponent> ().tweetCancelAction  = cancelCallback;
     twitter.Compose(session, imageUri, text, hashtags);
 }
Пример #2
0
 /// <summary>
 /// Show Twitter composer
 /// <param name="session">User’s session from Login</param>
 /// <param name="card">Card for composer</param>
 /// <param name="hashtags">hashtags to pre-fill</param>
 /// </summary>
 public static void Compose(TwitterSession session, Card card, string[] hashtags = null)
 {
     twitter.Compose(session, card, hashtags);
 }
Пример #3
0
 /// <summary>
 /// Show Twitter composer
 /// <param name="session">User’s session from Login</param>
 /// <param name="imageUri">uri of image to include in tweet</param>
 /// <param name="text">text to tweet to pre-fill</param>
 /// <param name="hashtags">hashtags to pre-fill</param>
 /// </summary>
 public static void Compose(TwitterSession session, String imageUri, String text, string[] hashtags = null)
 {
     twitter.Compose(session, imageUri, text, hashtags);
 }