Posts Tagged dependency service

Toast message for Xamarin Forms

toastdemo_androidtoastdemo_ios

Quick and easy solution for toast messages in Xamarin Forms, it supports iOS and Android platforms. Toast message provides simple feedback in a small popup (which is disappearing in some seconds) like on the screenshots on the left (Android) and the right (iOS) sides.


Read the rest of this entry »

, , , , , , , , , ,

3 Comments

Detect in Xamarin.Forms if the app is running in simulator or on real device

Sometimes you need to detect if you are using simulator (emulator) or real device, typical example can be the situation when you are running the webservices used by your application on the same computer where you are running simulator and you would like quickly check how it is working altogether.

There are separate solutions for iOS here:
https://developer.xamarin.com/recipes/ios/general/projects/environment_checks
And for Android here:
http://forums.xamarin.com/discussion/34275/detect-if-simulator-or-device

I just gathered them altogether and created dependency service for Xamarin.Forms application

Read the rest of this entry »

, , , , ,

1 Comment