Hello!!
what is the best way to detect size changes in folding devices (Galaxy Fold)?
Is CoronaSDK able to somehow detect that the size of the screen has changed and warn via eventListener?
Thanks!
Hello!!
what is the best way to detect size changes in folding devices (Galaxy Fold)?
Is CoronaSDK able to somehow detect that the size of the screen has changed and warn via eventListener?
Thanks!
I really wouldn’t worry about this…
Have you tried the resize() event? It may not work, but I think that is the event that is suited to the need.
https://docs.coronalabs.com/api/event/resize/index.html
-- Called when the app's view has been resized local function onResize( event ) print( "I got a resize event -- BOOYA!" ) end -- Add the "resize" event listener Runtime:addEventListener( "resize", onResize )
I’m not sure how you’d want to respond to it, but you can at least check it is thrown.
If it is NOT thrown, you probably need to file a feature request. It may not happen right away however since the engineers would probably have to buy a device and invest a bit of time working out how to detect this.
Interesting question! Not very important at the moment, but it will lead to interesting changes in game design in the next few year, I assume.
roaminggamer is right!
Possibly Corona SDK interpret screen size changes as “resize” eventListener
I still do not own a foldable device to test.
Thank you guys!
I really wouldn’t worry about this…
Have you tried the resize() event? It may not work, but I think that is the event that is suited to the need.
https://docs.coronalabs.com/api/event/resize/index.html
-- Called when the app's view has been resized local function onResize( event ) print( "I got a resize event -- BOOYA!" ) end -- Add the "resize" event listener Runtime:addEventListener( "resize", onResize )
I’m not sure how you’d want to respond to it, but you can at least check it is thrown.
If it is NOT thrown, you probably need to file a feature request. It may not happen right away however since the engineers would probably have to buy a device and invest a bit of time working out how to detect this.
Interesting question! Not very important at the moment, but it will lead to interesting changes in game design in the next few year, I assume.
roaminggamer is right!
Possibly Corona SDK interpret screen size changes as “resize” eventListener
I still do not own a foldable device to test.
Thank you guys!