03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note: This comm<strong>and</strong> is not supported for BREW devices.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetPowerSource None -1: Not supported.<br />

0: Device is operating on battery power.<br />

1: Device is operating on an external<br />

power source.<br />

Example<br />

The following example sets the myPower variable to indicate the power source, or to -1 if it<br />

was unable to do so:<br />

myPower = fscomm<strong>and</strong>2("GetPowerSource");<br />

GetSignalLevel fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetSignalLevel<br />

Returns the current signal strength as a numeric value.<br />

Note: This comm<strong>and</strong> is not supported for BREW devices.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetSignalLevel None -1: Not supported.<br />

Other numeric values: The current signal<br />

level, ranging from 0 to the maximum value<br />

returned by GetMaxSignalLevel.<br />

Example<br />

The following example assigns the signal level value to the sigLevel variable:<br />

sigLevel = fscomm<strong>and</strong>2("GetSignalLevel");<br />

GetSoftKeyLocation fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetSoftKeyLocation<br />

Returns a value that indicates the location of soft keys on the device.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetSoftKeyLocation None -1: Not supported.<br />

0: Soft keys on top.<br />

1: Soft keys on left.<br />

2: Soft keys on bottom.<br />

3: Soft keys on right.<br />

fscomm<strong>and</strong>2 Comm<strong>and</strong>s 221

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!