Class PhoneGap
Defined in: phonegap.js.
Constructor Attributes | Constructor Name and Description |
---|---|
PhoneGap()
This represents the PhoneGap API itself, and provides a global namespace for accessing
information about the state of PhoneGap.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
PhoneGap.available
Boolean flag indicating if the PhoneGap API is available and initialized.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
PhoneGap.addConstructor(func)
Add an initialization function to a queue that ensures it will run and initialize
application constructors only once PhoneGap has been initialized.
|
<static> |
PhoneGap.exec(command, args)
Execute a PhoneGap command in a queued fashion, to ensure commands do not
execute with any race conditions, and only run when PhoneGap is ready to
recieve them.
|
Class Detail
PhoneGap()
This represents the PhoneGap API itself, and provides a global namespace for accessing
information about the state of PhoneGap.
Field Detail
<static>
PhoneGap.available
Boolean flag indicating if the PhoneGap API is available and initialized.
Method Detail
<static>
PhoneGap.addConstructor(func)
Add an initialization function to a queue that ensures it will run and initialize
application constructors only once PhoneGap has been initialized.
- Parameters:
- {Function} func
- The function callback you want run once PhoneGap is initialized
<static>
PhoneGap.exec(command, args)
Execute a PhoneGap command in a queued fashion, to ensure commands do not
execute with any race conditions, and only run when PhoneGap is ready to
recieve them.
- Parameters:
- {String} command
- Command to be run in PhoneGap, e.g. "ClassName.method"
- {String[]} args Optional
- Zero or more arguments to pass to the method