Forums

OverviewV-Play 2 Support (Qt 5)Pause on onApplicationPaused: › Reply To: Pause on onApplicationPaused:

OverviewV-Play 2 Support (Qt 5)Pause on onApplicationPaused: › Reply To: Pause on onApplicationPaused:
#12331

Günther
V-Play Team

Hi Cho!

We currently only provide these two signals for pausing or resuming. They are fired based on changes in the Qt.application.state.
You can create a similar handler yourself:

Connections {
    target: Qt.application

    onStateChanged: {
      console.debug("App state changed to", Qt.application.state)
    }
  }

Maybe you can use this to detect an incoming call also based on a state change. If an incoming call doesn’t cause a state change, I guess a more native approach is needed (e.g. trying to detect an incoming call with native Android Java code, but this won’t run cross-platform then).

 

 

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support