This file contains hidden or 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 NativeDateTimePickerDialog dialog = new NativeDateTimePickerDialog(); | |
var dateTimeParam = new DialoDateTimeParam( | |
"Date Time Picker", | |
DateTimePickerMode.UIDatePickerModeDateAndTime, | |
"OK", | |
"Cancel", | |
247868400000); //8.11.1977 8:20 PM UTC | |
dialog.ShowNativeDateTimeDialogAsync(dateTimeParam) |
This file contains hidden or 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 var picker = new NativeCountryPicker.NativeCountryPicker(); | |
var pickerParams = new NativeCountryPickerParams( | |
title: "What's your country?", | |
selectedCountry: "USA", | |
closeButtonLabel: "Close"); | |
var result = await picker.ShowCountryDialogAsync(pickerParams); | |
if (this.label != null) | |
{ | |
if (result.Item2 == NativeCountryErrorCodes.NoError) |
This file contains hidden or 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 var picker = new NativePhonePicker(); | |
var pickerParams = new NativePhonePickerParams(textFieldLabel: "What's your phone number?", | |
buttonLabel: "Confirm", selectedCountry: "US", title: "Phone Picker Sample", selectedCountryLabel: "Select Country"); | |
var result = await picker.ShowPhoneNumberDialogAsync(pickerParams); | |
if (this.label !=null) | |
{ | |
if (result.Item2 == NativePhoneErrorCodes.NoError) | |
this.label.text = $"{result.Item1.DialCode}{result.Item1.Number}"; | |
else |
This file contains hidden or 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 (NativeAlertDialog dialog = new NativeAlertDialog()) | |
{ | |
DialogParams dialogParams = new DialogParams("<<Input your TITLE here>>", "<<Input your MESSAGE here>>"); | |
dialog.ShowNativeDialogAsync(dialogParams).ContinueWith(task => | |
{ | |
if (task.Result.Item2 != ButtonErrorCode.NoError) | |
{ | |
//your error handling here | |
} | |
else |