Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Como usar a API sysinfo com Widgets WRT

From Wiki
Jump to: navigation, search
Article Metadata

Compatibilidade
Plataforma(s):
Symbian

Artigo
Criado por dcrocha em Dcrocha
Última alteração feita por hamishwillee em 07 May 2013

Compatibilidade: Web Run-Time em S60 3rd Edition, Feature Pack 2

HTML

Para habilitar o uso da API SysInfo é necessário embarcá-la (embed) no documento HTML já que a mesma é implementada como um plugin do browser.

  <embed type="application/x-systeminfo-widget" hidden="yes"></embed>

Exemplo em HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="api.js" />
<body onload="testapi()">
<embed type="application/x-systeminfo-widget" hidden="yes"></embed>
</body>
</html>

JavaScript

function testapi() 
var sysinfo = document.embeds[0];
sysinfo.beep(5000, 900);
}
This page was last modified on 7 May 2013, at 23:59.
208 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×