private UM_ShareDialogBuilder MakeSharingBuilder() { var builder = new UM_ShareDialogBuilder(); builder.AddImage(Screenshot); return(builder); }
private UM_ShareDialogBuilder MakeSharingBuilder() { var builder = new UM_ShareDialogBuilder(); builder.SetText("Hello world!"); builder.SetUrl("https://stansassets.com/"); //Juts generating simple red texture with 32x32 resolution var sampleRedTexture = SA_IconManager.GetIcon(Color.red, 32, 32); builder.AddImage(sampleRedTexture); return(builder); }
private UM_ShareDialogBuilder MakeSharingBuilder() { var builder = new UM_ShareDialogBuilder(); builder.SetText("Помоги, собрать загаданные слова!"); builder.SetUrl("https://play.google.com/store/apps/details?id=" + Application.identifier); //Juts generating simple red texture with 32x32 resolution var sampleRedTexture = SA_IconManager.GetIcon(Color.red, 32, 32); builder.AddImage(screenShot()); return(builder); }
public IEnumerator ShareToWhatsapp() { var @lock = new CallbackLock(); var client = UM_SocialService.SharingClient; var builder = new UM_ShareDialogBuilder(); //Juts generating smaple red tuxture with 32x32 resolution Texture2D sampleRedTexture = SA_IconManager.GetIcon(Color.red, 32, 32); builder.AddImage(sampleRedTexture); client.ShareToWhatsapp(builder, (result) => { @lock.Unlock(); Assert.IsTrue(result.IsSucceeded); }); yield return(@lock.WaitToUnlock()); }
public IEnumerator SystemShareDialog() { var @lock = new CallbackLock(); var client = UM_SocialService.SharingClient; var builder = new UM_ShareDialogBuilder(); builder.SetText("Hello world!"); builder.SetUrl("https://stansassets.com/"); //Juts generating smaple red tuxture with 32x32 resolution Texture2D sampleRedTexture = SA_IconManager.GetIcon(Color.red, 32, 32); builder.AddImage(sampleRedTexture); client.SystemSharingDialog(builder, (result) => { @lock.Unlock(); Assert.IsTrue(result.IsSucceeded); }); yield return(@lock.WaitToUnlock()); }