public void Toast(string msg, bool islong = false, bool isNative = false) { Xamarin.Forms.View toastView = isNative ? null : _dialogsInitize.GetInitToastView(); var config = new DialogConfig() { DialogPosition = DialogPosition.ToastDefault }; var dialogMsg = new ToastMsg() { Msg = msg }; ToastDialogUtil toastDialog = new ToastDialogUtil(_activity, toastView, config , dialogMsg, islong, isNative); var toast = toastDialog.Builder(); if (toast != null) { toast.Show(); } }