售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
PhoneGap Essentials
Table of Contents
PhoneGap Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Get up and Running with PhoneGap
A brief history
What is PhoneGap?
Where can it be used?
What PhoneGap is not
Competition
PhoneGap or Cordova?
Setting up a local development environment
Mac OS
Linux
Windows
Summary
2. Mobile Platform Support
Supported platforms
Supported features by platform
Support for development
PhoneGap Build
Platform support
Using PhoneGap Build
The PhoneGap Developer App
How to use it
Summary
3. Command-line Interface
Introduction to a command-line interface
PhoneGap CLI versus Cordova CLI
Installing the PhoneGap CLI
Creating a new project
Creating a Hello project
Creating a new project
Managing platforms
Adding a platform
Listing platforms
Removing a platform
Keeping platforms up-to-date
Application description
Creating a project from a template
Managing the project
Application preview
Preparing an application
Compiling an application
Building an application
Running an application
Emulating an application
Using PhoneGap Build
Authentication
Preparing the application
Building the application
Summary
4. Plugin Support
Introducing plugins
What is a plugin?
Support for different mobile platforms
Installing plugins
Command-line Interface
Finding plugins
Adding plugins
Listing plugins
Removing plugins
Plugman
Installing Plugman
Searching for plugins
Installing plugins
Removing plugins
npm
Plugins
Battery Status
Camera
Contacts
Device
The Device Motion plugin
Device position orientation
Dialogs
FileSystem
File Transfer
Geolocation
Globalization
InAppBrowser
Media
Media Capture
Network Information
Splashscreen
Vibration
StatusBar
Summary
5. First PhoneGap Application
Starting a new application
Creating a new application
Setting up the initial code
Project folder structure
Core PhoneGap events
The deviceready event
The pause event
The resume event
Essential plugins
The Device plugin
The Network Information plugin
The StatusBar plugin
The Dialogs plugin
Summary
6. Accessing Native APIs
Native APIs
Device status plugins
Motion sensing plugins
Media functionality plugins
Notification plugins
The Battery Status plugin
The Battery Status event
The Low Battery event
The Critical Battery event
The Device Motion plugin
The getCurrentAcceleration method
watchAcceleration
clearWatch
The Device Orientation plugin
getCurrentHeading
watchHeading
clearWatch
The Geolocation plugin
getCurrentPosition
watchPosition
clearWatch
The Position object
The Coordinates object
The Vibration plugin
Vibrate
Standard vibrate
Vibrating with a pattern (Android and Windows only)
Cancelling the vibration (not supported in iOS)
Summary
7. Accessing Media Content
Introducing multimedia
Media
File management
Contacts
File Transfer
The FileTransfer object
The FileUploadResult object
Upload
Download
Abort
Contacts
Contact
The Contact object
ContactName
ContactField
ContactAddress
ContactOrganization
The create method
Find
pickContact
Camera
getPicture
cleanup
InAppBrowser
The InAppBrowser object
The InAppBrowserEvent object
Open
Summary
8. Application Development Workflow
An introduction to a development workflow
Web project development
Native platform development
Best practices
Use local assets for the UI
Network access for data
Non-blocking UI
CSS animations
Click events
Performance
Optimize the image assets
Offline status
Load only what you need
Transparency
JSHint
Testing
Debugging
Desktop browsers
The PhoneGap emulator
Weinre
iOS Debugging
Xcode
Safari Remote Debugging
Android debugging
User interface
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜