private async void CheckInReserva()
        {
            try
            {
                Plugin.Share.Abstractions.ShareMessage Compartir = new Plugin.Share.Abstractions.ShareMessage();

                var hasPermission = await Utils.CheckPermissions(Permission.Location);

                if (!hasPermission)
                {
                    return;
                }


                var Posicion = await Ubicacion.GetCurrentPosition();

                Compartir.Text  = "Ubicacion Actual";
                Compartir.Title = "Tu ubicacion";
                Compartir.Url   = "https://www.google.com/maps/@" + Posicion.Latitude + "," + Posicion.Longitude + "," + "16z";

                await CrossShare.Current.Share(Compartir);
            }
            catch (Exception ex)
            {
                await Mensajes.Alerta("Ubicación denegada, activa el GPS de tu dispositivo");
            }
        }
示例#2
0
        private async void CompartirUrl()
        {
            Plugin.Share.Abstractions.ShareMessage Compartir = new Plugin.Share.Abstractions.ShareMessage();

            Compartir.Text  = this.descripcion;
            Compartir.Title = this.nombre;

            if (this.gua_id_evento > 0)
            {
                Compartir.Url = "https://citycenter-rosario.com.ar/es/es/show-detail/" + this.gua_id_evento + "/" + this.nombre;
            }

            if (this.gua_id_promocion > 0)
            {
                Compartir.Url = "https://citycenter-rosario.com.ar/es/promocion-detail/" + this.gua_id_promocion + "/" + this.nombre;
            }

            if (this.gua_id_torneo > 0)
            {
                Compartir.Url = "https://citycenter-rosario.com.ar/es/casino/torneo-detail/" + this.gua_id_torneo + "/" + this.nombre;
            }

            if (this.gua_id_destacado > 0)
            {
                Compartir.Url = "https://citycenter-rosario.com.ar/es/promocion-detail/" + this.gua_id_destacado + "/" + this.nombre;
            }


            await CrossShare.Current.Share(Compartir);
        }
示例#3
0
        private async Task ShareGame()
        {
            var message = new Plugin.Share.Abstractions.ShareMessage();

            message.Url   = GetAppURL();
            message.Title = "jusTap";
            message.Text  = string.Format("Check out this app - iOS: {0}, Android: {1}", "https://itunes.apple.com/bg/app/justap/id1194155031?mt=8", "http://play.google.com/store/apps/details?id=com.vorsightech.tapfast");
            await CrossShare.Current.Share(message);
        }
示例#4
0
 private async void ToolbarItem_Activated(object sender, EventArgs e)
 {
     //App.AppSettings.EnableDebugging, AppResources.category_debug + " Domoticz"
     var oMessage = new Plugin.Share.Abstractions.ShareMessage
     {
         Text  = App.AppSettings.DebugInfo,
         Title = AppResources.category_debug + "- Domoticz"
     };
     await CrossShare.Current.Share(oMessage);
 }
        private async void CompartirUrl()
        {
            Plugin.Share.Abstractions.ShareMessage Compartir = new Plugin.Share.Abstractions.ShareMessage();

            Compartir.Text  = td.tor_descripcion;
            Compartir.Title = td.tor_nombre;
            Compartir.Url   = "https://citycenter-rosario.com.ar/es/casino/torneo-detail/" + td.tor_id + "/" + td.tor_nombre;

            await CrossShare.Current.Share(Compartir);
        }
示例#6
0
        private async void CompartirUrl()
        {
            Plugin.Share.Abstractions.ShareMessage Compartir = new Plugin.Share.Abstractions.ShareMessage();

            Compartir.Text  = dd.des_descripcion;
            Compartir.Title = dd.des_nombre;
            Compartir.Url   = "https://citycenter-rosario.com.ar/es/show-detail/" + dd.des_id + "/" + this.dd;

            await CrossShare.Current.Share(Compartir);
        }
        private async void Compartir()
        {
            Plugin.Share.Abstractions.ShareMessage Shared = new Plugin.Share.Abstractions.ShareMessage();

            Shared.Text  = this.pd.pro_descripcion;
            Shared.Title = this.pd.pro_nombre;
            Shared.Url   = "https://citycenter-rosario.com.ar/es/promocion-detail/" + this.pd.pro_id + "/" + this.pd.pro_nombre;

            await CrossShare.Current.Share(Shared);
        }
示例#8
0
        private void Share_Tapped(object sender, EventArgs e)
        {
            var ShareMessage = new Plugin.Share.Abstractions.ShareMessage
            {
                Text  = "Exemplo de como compartilhar textos e links em Aplicações Xamarin.Forms. / Example of how to share texts and links in Xamarin.Forms Applications.",
                Title = "Share",
                Url   = "https://www.julianocustodio.com"
            };

            CrossShare.Current.Share(ShareMessage);
        }
        private async void Share_Clicked(object sender, EventArgs e)
        {
            Plugin.Share.Abstractions.ShareMessage mssg = new Plugin.Share.Abstractions.ShareMessage();
            mssg.Title = "Contato";
            mssg.Text  = vm.person.FullName + Environment.NewLine;
            mssg.Text += vm.person.Address + Environment.NewLine;
            foreach (var item in vm.person.PhoneNumber)
            {
                mssg.Text += item.Desc + " - " + item.Number + Environment.NewLine;
            }


            await Plugin.Share.CrossShare.Current.Share(mssg);
        }
示例#10
0
        private async void UbicacionCasino()
        {
            try
            {
                Plugin.Share.Abstractions.ShareMessage Compartir = new Plugin.Share.Abstractions.ShareMessage();


                var permissionStatus = await CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Location);

                if (permissionStatus == PermissionStatus.Denied)
                {
                    var results = await CrossPermissions.Current.RequestPermissionsAsync(Permission.Location);

                    if (results.ContainsKey(Permission.Location))
                    {
                        if (permissionStatus != PermissionStatus.Granted)
                        {
                            await Mensajes.Alerta("Ubicación denegeada, por favor activa el GPS de tu dispositivo");

                            return;
                        }
                    }
                }


                //var hasPermission = await Utils.CheckPermissions(Permission.Location);
                //if (!hasPermission)
                //return;


                var Posicion = await Ubicacion.GetCurrentPosition();

                Compartir.Text  = "Ubicacion Actual";
                Compartir.Title = "Tu ubicacion";
                Compartir.Url   = "https://www.google.com/maps/@" + Posicion.Latitude + "," + Posicion.Longitude + "," + "16z";

                await CrossShare.Current.Share(Compartir);
            }
            catch (Exception)
            {
                await Mensajes.Alerta("Ubicación denegeada, por favor activa el GPS de tu dispositivo");
            }
        }
示例#11
0
        private void ShareInfo()
        {
            List <string> abilities = new List <string>();

            for (int i = 0; i < Abilities.Count; i++)
            {
                abilities.Add(Abilities.ElementAtOrDefault(i).Name);
            }

            var ShareMessage = new Plugin.Share.Abstractions.ShareMessage
            {
                Text = $"*{Name}* \n" +
                       $"*Altura:* {Height} \n" +
                       $"*Peso:* {Weight} \n" +
                       $"*Habilidades:* {abilities.Aggregate((prev, str) => $"{prev}, {str}")}",
                Title = $"Pokemon - {Name}",
            };

            CrossShare.Current.Share(ShareMessage);
        }