There are situations where, if you need a particular Android or iOS feature, FireMonkey does not help you. FireMonkey does a very good job in supporting all the common mobile features, but not all the APIs have been already imported, polished, and wrapped in nice Object Pascal reusable classes or components. What can you do in these cases? The good news is that you can import classes from the underlying SDK (and NDK, in the case of Android) and wrap them just like Embarcadero did in the FireMonkey platform.
In this chapter, we will see some class import examples. Keep in mind that the code using imported classes is not cross-platform. That is, if you import an Android SDK class and your code uses it, you lose the possibility of compiling that specific code for iOS; however, you can, as usual, use some IFDEFs to statically select the Android-specific code from the...