I've read the Xamarin.Android documentation about performing runtime checks, but the oroblem is i'm dealing with a xamarin forms project. Most of my code and UI is the PCL(public class library)project,so how can i know or determine what apis are being used and the api levels they belong to.For example, how can i write a runtime check that only loads specific apis if the device's version is Lollipop or higher?
@TolulopeAsalu - For Android and iOS, you can use the Xam.Plugin.DeviceInfo plugin to get the o/s version. For UWP, use Windows.Foundation.Metadata.ApiInformation.IsApiContractPresent to check whether the API you want is present.
Neither will tell you which APIs you are using though.
Answers
@TolulopeAsalu - For Android and iOS, you can use the Xam.Plugin.DeviceInfo plugin to get the o/s version. For UWP, use Windows.Foundation.Metadata.ApiInformation.IsApiContractPresent to check whether the API you want is present.
Neither will tell you which APIs you are using though.
So I will have to get the list of all the apis from information under their respective api levels. [email protected]
How can i get the list of all the apis under an api level? Like for example all the apis associated with Lollipop(Version 5)Api level 21.