private UM_ShareDialogBuilder MakeSharingBuilder()
    {
        var builder = new UM_ShareDialogBuilder();

        builder.AddImage(Screenshot);
        return(builder);
    }
Exemple #2
0
    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);
    }
Exemple #3
0
    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);
    }
Exemple #4
0
        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());
        }