Skip to content

Instantly share code, notes, and snippets.

View devjaime's full-sized avatar
😉
My job is to make your experience the best

Jaime Hernández devjaime

😉
My job is to make your experience the best
View GitHub Profile
@devjaime
devjaime / .cs
Created April 20, 2019 22:57
geolocalizacion xaml
<views:BasePage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:Geolocalizacion.View"
xmlns:viewmodels="clr-namespace:Geolocalizacion.ViewModel"
x:Class="Geolocalizacion.View.GeolocationPage"
Title="Geolocalización">
<views:BasePage.BindingContext>
<viewmodels:GeolocationViewModel />
</views:BasePage.BindingContext>
@devjaime
devjaime / .cs
Created April 19, 2019 13:42
permisos assamby
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Geocodificacion.Android")]
[assembly: AssemblyDescription("")]
@devjaime
devjaime / .cs
Created April 19, 2019 13:40
permisos
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.Geocodificacion">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.location" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
<uses-feature android:name="android.hardware.location.network" android:required="false" />
<application android:label="Geocodificacion.Android"></application>
</manifest>
@devjaime
devjaime / .cs
Created April 19, 2019 13:36
Geocoding ViewModel
using System;
using System.Linq;
using System.Windows.Input;
using Xamarin.Essentials;
using Xamarin.Forms;
namespace Samples.ViewModel
{
public class GeocodingViewModel : BaseViewModel
{
@devjaime
devjaime / .cs
Created April 19, 2019 13:35
clase vista geocoding
namespace Geocodificacion.View
{
public partial class GeocodingPage : BasePage
{
public GeocodingPage()
{
InitializeComponent();
}
}
}
@devjaime
devjaime / .cs
Created April 19, 2019 13:34
vista geocoding
<views:BasePage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:Geocodificacion.View"
xmlns:viewmodels="clr-namespace:Geocodificacion.ViewModel"
x:Class="Geocodificacion.View.GeocodingPage"
Title="Geocoding">
<views:BasePage.BindingContext>
<viewmodels:GeocodingViewModel />
</views:BasePage.BindingContext>
@devjaime
devjaime / .cs
Created April 19, 2019 04:15
viewmodelbattery
using Xamarin.Essentials;
namespace Bateria.ViewModel
{
public class BatteryViewModel : BaseViewModel
{
public BatteryViewModel()
{
}
@devjaime
devjaime / .cs
Created April 19, 2019 04:15
viewmodelbattery
using Xamarin.Essentials;
namespace Bateria.ViewModel
{
public class BatteryViewModel : BaseViewModel
{
public BatteryViewModel()
{
}
@devjaime
devjaime / .cs
Created April 19, 2019 04:14
clase de vista
namespace Bateria.View
{
public partial class BatteryPage : BasePage
{
public BatteryPage()
{
InitializeComponent();
}
}
}
@devjaime
devjaime / .cs
Created April 19, 2019 04:13
xaml
<views:BasePage
x:Class="Bateria.View.BatteryPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewmodels="clr-namespace:Bateria.ViewModel"
xmlns:views="clr-namespace:Bateria.View"
Title="Battery">
<views:BasePage.BindingContext>
<viewmodels:BatteryViewModel />
</views:BasePage.BindingContext>