Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How does Corona work with cutouts on the modern phones screen's?
Started by stalxerhd Jun 22 2019 10:42 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

stalxerhd

[GLOBAL: userInfoPane.html]
stalxerhd
  • Observer

  • 2 posts
  • Corona SDK

How does Corona work with cutouts on the modern phones screen's?
 
I don't have a modern phone to test myself, so I want to ask about it. I mean these cutouts (attached). 
 
I had watched some videos, and game apps very often go full widescreen, so these areas (for front camera and sensors) - on top of the smartphone - are also in use. 
 
But if I want to use a top part of the phone for gameplay info (speed, score, lives, what's coming next, messages, etc how I could now, what part in pixels I shouldn't use?
 
There is another problem - these cutouts are very different. Big or small, like a circle or like a rectangle.
 
I already made resolution-independent prototype, so I use such commands like
display.actualContentWidth
display.actualContentHeight
display.pixelWidth
display.pixelHeight

But I forgot about cutoffs and now apprehend, that some info may be hidden or not fully visible...

 

Will it happen?

Attached Files

  • Attached File  003.jpg   193.37KB   0 downloads
  • Attached File  002.jpg   116.59KB   0 downloads


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,788 posts
  • Enterprise

Corona has API's that are for devices with Notches. Look for the display.* API's with the word "Safe" in their name. However I believe they are only working correctly on iOS devices. My understanding is that we will need to target Android SDK 28 (Android 9/Pie) before notch support will work. We have to get 64-bit out the door then we will address SDK 28. Then there may need to be more work to hook up those API's to our existing safe zone APIs.

 

 

Rob


  • roaminggamer and stalxerhd like this


[topic_controls]
[/topic_controls]