Xamarin Android Camerax. You could define the function in the Android platform projec