Skip to main content
kenj23706114
Participant
Jul 27, 2015 7:34 AM UTC
Answered

How to get render mode of any application on runtime

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 is closed to new replies. Start a new post to keep the conversation going.
kheftel
kheftelCorrect answer
Inspiring
Jul 27, 2015 4:52 PM UTC

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

3 replies

kheftel
kheftelCorrect answer
Inspiring
Jul 27, 2015 4:52 PM UTC

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

Translate
kenj23706114
Participant
Jul 29, 2015 5:32 AM UTC

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

Translate
Colin Holgate
Inspiring
Jul 29, 2015 3:15 PM UTC

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?

Translate