I am using a portable project so do not have direct access to native code.
I have an interface in my project that allows me to access native objects in the Android/iOS projects. We use this primarily for playing audio.
Android, for example, has things like
Window w = new Window();
w.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.KeepScreenOn);
However the main issue would be accessing a Window
object. I could pass a Xamarin.Forms.Page
object to the native code, but there would be no way (I don't think) to cast it to a native Android Window
object to access the flags.
Is there a way to do this with a portable project?