Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active March 1, 2018 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/a40918097bd5ea0399323b786e5368a8 to your computer and use it in GitHub Desktop.
Save juucustodio/a40918097bd5ea0399323b786e5368a8 to your computer and use it in GitHub Desktop.
This example show native messages to users in Xamarin.Forms applications - http://julianocustodio.com/native-message
using System;
using Xamarin.Forms;
namespace DemoNativeMessage
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private void Button_OnClicked(object sender, EventArgs e)
{
DependencyService.Get<IMessage>().LongAlert("Hello");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment