LastInputType Method

This member of Class WaveLinkIO is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The LastInputType Method returns the type of the last input call.

Syntax

public int LastInputType()

Returns

The input type constant

Remarks

The possible return constants for input types are:

WLCOMMANDTYPE

Function Key input

WLKEYTYPE

Standard Key input

WLMENUBARTYPE

Menubar input

WLPOPUPTYPE

Popup trigger input

WLSCANTYPE

Scanner input

WLTIMEDOUT

RFInput input prompt expired

WLWIDGETTYPE

Widget input

See Constant Values for the numeric equates returned by the function.

Example

WaveLinkIO ioIface = new WaveLinkIO();

String resultStr;

.

.

.

try {

//Use RFInput or GetEvent to obtain input

resultStr = ioIface.GetEvent();

switch(ioIface.LastInputType())

{

case ioIface.WLCOMMANDTYPE:

//Process command type

break;

case ioIface.WLKEYTYPE:

//Process keyed command

break;

case ioIface.WLSCANTYPE:

// Process scanned input

break;

}

}

catch (WaveLinkError wlErr) {

//Do error handling

}

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal