beautypg.com

Gmiengine. change_ime (), Gmi applet application, 5 gmi applet application – Grandstream GXV3140 GMI Guide User Manual

Page 16: 19 gmiengine. change_ime ()

background image

Grandstream Networks, Inc.

GMI HTML SDK and API Guide

Page 16 of 43

www.grandstream.com

Last Updated: 09/2010

4.19 GMIEngine. change_ime ()

Function:

GMIEngine.

change_ime(id, cb_input_changed)

Purpose:

Change the current input method.

Parameter and Return

Value:

Parameter:

id—id value for the display text type, used to display the current

input method.

cb_input_changed— Callback function for the change input

method function. The function prototype is function

cb_input_changed(result), the parameter “result” is the response to

the change input method request.

result is a text string in json format. For example,{"Response":"

Success", ","InputMethod": "abc" };

“Response” returns the result. There are two possibilities-

“Success” or “ERROR”, “InputMethod” returns the current input

method.

Return Value:

None

Additional Description:

None

5 GMI Applet Application

The GMI Applet is closely related to the GMI application, but there are some small differences.

The similarities between GMI Appler and GMI include:

 Both will model the application interface based on the obtained html page.
 Both supports cross-domain interaction (between the user-defined webserver and

the built-in GMI server on the phone) and supports the same GMI API functions.

The differences are:

 GMI Applet is a desktop plugin application while GMI application will need to

launch a separate application.

 Since GMI Appletis a desktop plugin application and the softkeys/navigation

buttons are being used by the desktop application; therefore, the Backspace and the

Shift keys are used to replace the F3 and F4 keys. When writing the GMI Applet

Application source code, the Backspace key event should be mapped to the F4 key

event and the Shift key event should be mapped to the F3 event.