The development and screen and services will be omitted as it is identical to the development environment of XPLATFORM HTML5. Please refer to Getting Started (HTML5) for detailed information.
Below are the distinct information related to XPLATFORM Hybrid.
MLM
The form of the terminal’s screen is various from horizontal to vertical and the MLM(Multi Layout manager) function will be useful. However, it does not require a special development method. Refer to the Developer’s Guide for detailed information about MLM.
Device API
It provides Device API for the characteristic functions of terminals such as SMS and vibrator. A method for using Device API is the same as using object when developing XPLATFORM HTML5. Below shows an example of sending an SMS message. However, it does not operate on PCs and you can only check its operation by running it on the terminal.
Register Sms object in TypeDefinition.
Register the object on the screen.
By using Sms Object’s sendMessage() Method, send the message.
It does not work on a PC and you can only check the sendMessage() motion by running it on a terminal.
Event processing related to Touch
XPLATFORM does not provide the touch related even which was processed when developing apps for pre-existing terminals for the convenience of the developer and the unity between HTML5 and Hybrid. For example, in the case of click related process, when developing the existing apps, it had the inconvenience of realizing it to each steps of touchstart touchmove touchend events. However, XPLATFORM automatically processes so that the same effect takes place only with the developer realizing the onclick event. The chart below shows the relationship between XPLATFORM event and the pre-existing events that were used in developing the pre-existing apps. In the chart below, the XPLATFORM internal action even column is the even that occurs within the XPLATFORM engine compared to the terminal app event, and it does not have to be materialized by the developer. Just use it for your reference.
XPLATFORM event | Terminal app event | XPLATFORM inner action event (notes) |
---|---|---|
onclick | touchstart | Onlbuttondown |
touchmove | Onmousemove | |
touchend | onlbuttonup | |
ondblclick | touchstart | Onlbuttondown |
touchmove | Onmousemove | |
touchend | Onlbuttonup | |
touchstart | ||
touchmove | Onmousemove | |
touchend | Ondblclick | |
onrbuttondown | Touchstart (When pressing for a long time) | Onrbuttondown |
touchmove | Onmousemove | |
touchend | Onrbuttonup |