Skip to main content
kenj23706114
Participant
July 27, 2015
Answered

How to get render mode of any application on runtime

  • July 27, 2015
  • 1 reply
  • 472 views

Hi All,

Is there any way of knowing the render mode of an application at runtime on iOS device ?

I need to get the render mode of my running application and pass on different logic based on whatever render mode I get at runtime but I am struggling to find any such API or method that can solve my purpose.

Any suggestions ?

Thanks,

Ken

This topic has been closed for replies.
Correct answer kheftel

You should be able to get from the app descriptor XML from

NativeApplication.nativeApplication.applicationDescriptor:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApplication.html

--

Thanks,

Kawika Heftel

Heftel Studios

801-358-9830

http://www.heftelstudios.com

1 reply

kheftel
kheftelCorrect answer
Inspiring
July 27, 2015

You should be able to get from the app descriptor XML from

NativeApplication.nativeApplication.applicationDescriptor:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApplication.html

--

Thanks,

Kawika Heftel

Heftel Studios

801-358-9830

http://www.heftelstudios.com

kenj23706114
Participant
July 29, 2015

Thanks for the response. However, this method is not working in our case as we are using a remote swf and that doesn't not have permission to parse the XML due to iOS sandboxing.

Is there some other way to doing this ? or to do a hack fix, Is there any API that is supported only on GPU mode, using this I can differentiate GPU mode from CPU mode just like I can differentiate direct mode by checking support for stageVideo or stage3D.

Regards,

Ken

Colin Holgate
Inspiring
July 29, 2015

For the external SWF to have code it it, it would have to be included in the build of the app, and then the code-less SWF is put on the server. So, the code that you would run to see what render mode you're in would be in the IPA already, and as the render mode doesn't change, why would the remote SWF not know what render mode was being used?