Device.OnPlatform equivalent

Hi,
I am looking for a plugin or an implementation that would enable me to use things like Device.Onplatform() in a cross platform project. Is it too much to add xamarin.forms to my app even if I don't want to use the forms UI, but I want to use other things from it?

Answers

  • imkumarsaurabhimkumarsaurabh INMember ✭✭

    Xamarin.Forms comes with lots of other advantages along with Device class. You can achieve the same by using Shared Project and using conditional code,for ex. #if __ANDROID__

Sign In or Register to comment.