Last active
March 1, 2018 18:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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