Skip to content

Instantly share code, notes, and snippets.

Vicente Guzmán LucioMSP

View GitHub Profile
@LucioMSP
LucioMSP / MainPage.xaml
Created Nov 8, 2019
Ejemplo de cómo implementar la autenticación biométrica en aplicaciones Xamarin.Forms
View MainPage.xaml
<?xml version="1.0" encoding="utf-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="FingerPrintPCL.MainPage">
<StackLayout VerticalOptions="Center">
@LucioMSP
LucioMSP / MainActivity.cs
Created Nov 8, 2019
Ejemplo de cómo implementar la autenticación biométrica en aplicaciones Xamarin.Forms
View MainActivity.cs
using Android.OS;
using Android.App;
using Android.Runtime;
using Android.Content.PM;
using Plugin.Fingerprint;
using Plugin.CurrentActivity;
namespace FingerPrintPCL.Droid
{
[Activity(Label = "FingerPrintPCL", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
@LucioMSP
LucioMSP / AndroidManifest.xml
Last active Nov 8, 2019
Ejemplo de cómo implementar la autenticación biométrica en aplicaciones Xamarin.Forms
View AndroidManifest.xml
<?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.ss.mx.fingerprintpcl">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="FingerPrintPCL.Android"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
</manifest>
@LucioMSP
LucioMSP / Consejos del Abuelo.JSON
Last active Oct 26, 2019
Alexa, lanza consejos del abuelo
View Consejos del Abuelo.JSON
{
"interactionModel": {
"languageModel": {
"invocationName": "consejos del abuelo",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]
View MainPage.xaml.cs
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using CurrencyUISample.ViewModels;
namespace CurrencyUISample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MainPage : ContentPage
{
MainPageVM vm = null;
View MainPageVM.cs
using Xamarin.Forms;
using System.Windows.Input;
using CurrencyUISample.Classes;
namespace CurrencyUISample.ViewModels
{
public class MainPageVM: ObservableObject
{
private INavigation _navigation;
public ICommand TransferMoneyCommand {get; set;}
View MainPage.xaml
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:util="clr-namespace:CurrencyUISample.Converters;assembly=CurrencyUISample"
mc:Ignorable="d" x:Class="CurrencyUISample.MainPage"
BackgroundColor="{StaticResource Bluebull}">
<ContentPage.Resources>
View CurrencyConverter.cs
using System;
using Xamarin.Forms;
using System.Globalization;
using System.Text.RegularExpressions;
namespace CurrencyUISample.Converters
{
/// <summary>
/// Converter for using in Entry fields for masked input of currency.
/// <b>The binded property must be of type decimal, and must invoke the
View ObservableObject.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace CurrencyUISample.Classes
{
public class ObservableObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
@LucioMSP
LucioMSP / .json YouTube
Last active Jul 9, 2019
JSON YouTube Skill
View .json YouTube
{
"interactionModel": {
"languageModel": {
"invocationName": "YouTube",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": [
"cancela"
]
You can’t perform that action at this time.