public static bool OpenPublishDialog(OKRequestCallback callback, OKMedia media) { return(OpenPublishDialog(callback, null, new List <OKMedia>() { media })); }
public void Share() { string description = string.Format("WOW! I reached level {0}!", level); if (OK.IsLoggedIn) { //OK.OpenPhotoDialog(uploadResponse => { Debug.Log("Photo uploaded!"); OK.OpenPublishDialog(PublishCallback, new List <OKMedia>() { OKMedia.Photo(texture), OKMedia.Text(description) }); /* * }, () => { * OK.OpenPublishDialog(PublishCallback, new List<OKMedia>() * { * OKMedia.Photo(texture), * OKMedia.Text(description) * }); * }, * texture, description); */ } Close(); }
private void Share(string text, string link, string title, Texture2D image) { OK.OpenPublishDialog( response => { if (response != null && response.Object != null && response.Object.ContainsKey("error_code")) { } else if (response != null) { AchievementsManager.Instance.CheckAchievements(TasksTypes.Share); } }, new List <OKMedia>() { OKMedia.Text(text), OKMedia.Photo(image), OKMedia.Link(link) }); }
public static bool OpenPublishDialog(OKRequestCallback callback, Action onClosed, OKMedia media) { return(OpenPublishDialog(callback, onClosed, new List <OKMedia>() { media })); }
public static bool OpenPublishDialog(OKRequestCallback callback, Action onClosed, OKMedia media) { return OpenPublishDialog(callback, onClosed, new List<OKMedia>() { media }); }
public static bool OpenPublishDialog(OKRequestCallback callback, OKMedia media) { return OpenPublishDialog(callback, null, new List<OKMedia>() { media }); }