December 2019
Intermediate to advanced
528 pages
11h 19m
English
The principle behind Xamarin is that the code that you write is cross-compiled. That is, when you compile for Android, you end up with a native app targeting the Android platform, and when you compile for iOS, you end up with a native app targeting iOS. However, the Xamarin platform is unable to do this when a piece of code is platform-specific. Say, for example, I want to access the camera – this varies from platform to platform. You can't simply take the code that does this for an iPhone and compile it for Android. So, how do we create platform-specific code?
The answer is that each piece of platform-specific code needs to be created separately for each platform; the principle behind Xamarin Forms is that you call the method ...