Phonegap: To what extent can I interact with user interface components?

I have been using PhoneGap for a while, mostly focusing on iOS and using mostly 100% web code.

I am going to research PhoneGap for another project in which there is a desire to use the input components of the original form of the device.

An example would be a date picker. Spinners in iOS, clicker in Android, etc.

To what extent / can PhoneGap access such user interface components? If I am targeting iOS4, can I call my own date picker on the device from my HTML / JS?

(I have to add that I know that this is not the most preferable model ... the whole point of PhoneGap is to manage less code for more devices, and standardization on a common user interface is the best bet ... but I ' m researching the requested options ...)

+6
source share
3 answers

Yes, you can call your native feed using phone saver plugins. There are currently two versions for Android and iOS:

Android: https://github.com/phonegap/phonegap-plugins/tree/master/Android/DatePicker iOS: https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/DatePicker

+8
source

No, you cannot reference your own date picker using phonegap. Phonegap is the shell of your browser container on your mobile device. Phonegap API has documentation related to what level of access api device is possible (camera, location, etc.)

As indicated in another answer, you can see mobilescroll (open source HTML / JS date-picker) http://code.google.com/p/mobiscroll/

Calling your own date picker from a web application on iOS / Android

+2
source

You can access some of the controls through the NativeControls plugin, which used to be part of the PhoneGap kernel, but they decided to go in a different direction.

+2
source

Source: https://habr.com/ru/post/892494/


All Articles