UIQ Technology
Symbian OS Library

UIQ 3.1 SDK        UIQ developer portal

[Index] [Spacer] [Previous] [Next]



How to detect programmatically (at runtime) if SVG is supported.

There is no specific API for this but the following approach can be used:

            _LIT(KUIQSvgSupport, "UIQSvgSupport.sis");
            _LIT(KPlatformDir, "z:\\system\\install\\");
            
            RFs fs;
            TInt res;
            fs.Connect();
            
            // Check if SVG is supported or not
            TFindFile ff(fs);
            res = ff.FindByDir(KUIQSvgSupport, KPlatformDir);
            if (res == KErrNone)
                {
                // Running on a platform supporting SVG
                }
            else
                {
                // Doesn't support SVG
                }
            fs.Close();