FliplineStudios I was not using any ane on iOS so I believe the issue should not exist there!
On android I am also going with the same implementation! For notch & cutout I am checking the left & right cutout widths and making necessary changes in the main sprite width & placing it in the centre of the screen!
Few issues I found while implementing this ane is that :- now my splash image appears at the bottom first & then it jumps to the centre, I believe its the delay that triggers the display change event! but not sure why it appears at the bottom first.
Second, when I added starling's native stage in Application.service.setStage( yourStageInstance );
I got a null error, right now I am passing the stage like this, same implementation from the previous ane:
stage.align = StageAlign.LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.displayState = StageDisplayState.NORMAL;
stage.color = 0x330099;
if(Application.isSupported){
Application.service.display.setDisplayMode( DisplayMode.IMMERSIVE,LayoutMode.CUTOUT_SHORT_EDGES);
Application.service.setStage(stage);
screenWidth = Application.service.display.displayMetrics.screenWidth;
screenHeight = Application.service.display.displayMetrics.screenHeight;
}