Hybrid Application Developer Question: Download Hybrid Application Developer PDF
Tell me what does PhoneGap plugin consist of? What are the files required to create your own PhoneGap plugin for IOS?
Answer:
PhoneGap plugin contains two files
☛ JavaScript file that defines the function for accessing the native hooks
☛ Implementation files written in the native language to co-ordinate with native phone features
To create your own PhoneGap plugins, you have to
☛ Make a new directory in your ${PROJECT_DIR}/plugins directory
☛ Make a JavaScript file within that new directory
☛ Make a new Objective-C class that extends the PhoneGap command class and also in the new directory
☛ JavaScript file that defines the function for accessing the native hooks
☛ Implementation files written in the native language to co-ordinate with native phone features
To create your own PhoneGap plugins, you have to
☛ Make a new directory in your ${PROJECT_DIR}/plugins directory
☛ Make a JavaScript file within that new directory
☛ Make a new Objective-C class that extends the PhoneGap command class and also in the new directory
Previous Question | Next Question |
Can you list out some of the PhoneGap API? | Do you know what is media.seekTo and media.getDuration function in OpenGap media API? |