detect if an overlay is being displayed in composer

Hi,

Quick question - does anybody know how can i tell if an overlay is being shown using composer?

Reason is im hooking in to the android back button so want to call hideOverlay if one is showing otherwise, i’ll go back to the previous scene

Cheers

This should help: composer.getSceneName( “overlay” )

http://docs.coronalabs.com/daily/api/library/composer/getSceneName.html

great! thanks jon :smiley:

This should help: composer.getSceneName( “overlay” )

http://docs.coronalabs.com/daily/api/library/composer/getSceneName.html

great! thanks jon :smiley: