How to use queryAppState in robot framework with appium 2.0?

I am trying to check whether my application under is running on not?

I got to know that there is this function queryAppState (Interface: ExternalDriver - Appium Documentation) to get the state of the application. But I am unable to use it in my robot framework code. If anyone knows it, Do let me know.

Thanks in Advance.