Appspresso
Contact us   |
  • English
  • ABOUT
    • Overview
    • License
    • Roadmap
  • SHOWCASE
    • Featured Apps
    • Appspresso Features
    • Show off your app
  • DOWNLOAD
    • Download Appspresso
    • 3rd party libraries & frameworks
  • DEVELOPER CENTER
    • Getting Started
    • Tutorials
    • API Reference
    • API Samples
    • Appspresso Plug-in Development Kit
    • Google Groups

Namespace ax

root namespace for appspresso javascript api

Namespace Summary
Constructor Attributes Constructor Name and Description
 
ax
root namespace for appspresso javascript api.
Field Summary
Field Attributes Field Name and Description
<static>  
ax.ABORT_ERR
<static>  
ax.DOMSTRING_SIZE_ERR
<static>  
ax.HIERARCHY_REQUEST_ERR
<static>  
ax.INDEX_SIZE_ERR
<static>  
ax.INUSE_ATTRIBUTE_ERR
<static>  
ax.INUSE_STATE_ERR
<static>  
ax.INVALID_ACCESS_ERR
<static>  
ax.INVALID_CHARACTER_ERR
<static>  
ax.INVALID_MODIFICATION_ERR
<static>  
ax.INVALID_VALUES_ERR
<static>  
ax.IO_ERR
<static> <constant>  
ax.MODE_DEBUG
runMode for DEBUG.
<static> <constant>  
ax.MODE_RELEASE
runMode for RELEASE.
<static>  
ax.NAMESPACE_ERR
<static>  
ax.NETWORK_ERR
<static>  
ax.NO_DATA_ALLOWED_ERR
<static>  
ax.NO_MODIFICATION_ALLOWED_ERR
<static>  
ax.NOT_AVAILABLE_ERR
<static>  
ax.NOT_FOUND_ERR
<static>  
ax.NOT_SUPPORTED_ERR
<static>  
ax.runMode
ax.MODE_DEBUG or ax.MODE_RELEASE.
<static>  
ax.SECURITY_ERR
<static>  
ax.SYNTAX_ERR
<static>  
ax.SYSTEM_ERR
<static>  
ax.TIMEOUT_ERR
<static>  
ax.TYPE_MISMATCH_ERR
<static>  
ax.UNEXPECTED_ERR
<static>  
ax.UNKNOWN_ERR
<static>  
ax.VALIDATION_ERR
<static>  
ax.WRONG_DOCUMENT_ERR

Method Summary

Method Attributes Method Name and Description
<static>  
ax.assert(condition, message)
assert condition.
<static>  
ax.debug(text, var_args)
log for internal developer.
<static>  
ax.def(target)
define/decorate an object with additional constants, properties and methods with a chain of method calls.
<static>  
ax.error(code, message, cause)
factory method to create new "AxError" object.
<static>  
ax.isArray(arg)
check whether "arg" is "array".
<static>  
ax.isArrayLike(arg)
check whether "arg" is "array-like"(NodeList, arguments, .
<static>  
ax.isBoolean(arg)
check whether "arg" is "boolean".
<static>  
ax.isError(err)
check whether "err" is "AxError" object.
<static>  
ax.isFunction(arg)
check whether "arg" is "function".
<static>  
ax.isNumber(arg)
check whether "arg" is "number".
<static>  
ax.isObject(arg)
check whether "arg" is "object".
<static>  
ax.isPlugin(obj)
check where "obj" is "AxPlugin" object.
<static>  
ax.isRequest(req)
check whether "req" is "AxRequest" object.
<static>  
ax.isString(arg)
check whether "arg" is "string".
<static>  
ax.log(text, var_args)
log for plugin developer.
<static>  
ax.nop()
no operation.
<static>  
ax.plugin(name, obj, ns)
factory method to create new "AxPlugin" object.
<static>  
ax.request(method, params)
factory methtod to create new "AxRequest" object.

Namespace Detail

ax
root namespace for appspresso javascript api.

Field Detail

<static> ax.ABORT_ERR

Defined in: ax_error.js.
<static> ax.DOMSTRING_SIZE_ERR

Defined in: ax_error.js.
<static> ax.HIERARCHY_REQUEST_ERR

Defined in: ax_error.js.
<static> ax.INDEX_SIZE_ERR

Defined in: ax_error.js.
<static> ax.INUSE_ATTRIBUTE_ERR

Defined in: ax_error.js.
<static> ax.INUSE_STATE_ERR

Defined in: ax_error.js.
<static> ax.INVALID_ACCESS_ERR

Defined in: ax_error.js.
<static> ax.INVALID_CHARACTER_ERR

Defined in: ax_error.js.
<static> ax.INVALID_MODIFICATION_ERR

Defined in: ax_error.js.
<static> ax.INVALID_VALUES_ERR

Defined in: ax_error.js.
<static> ax.IO_ERR

Defined in: ax_error.js.
<static> <constant> ax.MODE_DEBUG
runMode for DEBUG. verbose log messages and error checks.
<static> <constant> ax.MODE_RELEASE
runMode for RELEASE. less logs messages and error checks.
<static> ax.NAMESPACE_ERR

Defined in: ax_error.js.
<static> ax.NETWORK_ERR

Defined in: ax_error.js.
<static> ax.NO_DATA_ALLOWED_ERR

Defined in: ax_error.js.
<static> ax.NO_MODIFICATION_ALLOWED_ERR

Defined in: ax_error.js.
<static> ax.NOT_AVAILABLE_ERR

Defined in: ax_error.js.
<static> ax.NOT_FOUND_ERR

Defined in: ax_error.js.
<static> ax.NOT_SUPPORTED_ERR

Defined in: ax_error.js.
<static> ax.runMode
ax.MODE_DEBUG or ax.MODE_RELEASE.
<static> ax.SECURITY_ERR

Defined in: ax_error.js.
<static> ax.SYNTAX_ERR

Defined in: ax_error.js.
<static> ax.SYSTEM_ERR

Defined in: ax_error.js.
<static> ax.TIMEOUT_ERR

Defined in: ax_error.js.
<static> ax.TYPE_MISMATCH_ERR

Defined in: ax_error.js.
<static> ax.UNEXPECTED_ERR

Defined in: ax_error.js.
<static> ax.UNKNOWN_ERR

Defined in: ax_error.js.
<static> ax.VALIDATION_ERR

Defined in: ax_error.js.
<static> ax.WRONG_DOCUMENT_ERR

Defined in: ax_error.js.

Method Detail

  • <static> ax.assert(condition, message)
    assert condition.
    Parameters:
    {boolean} condition
    {string} message
  • <static> ax.debug(text, var_args)
    log for internal developer.
    Parameters:
    {string} text
    {...*} var_args
  • <static> {AxDef} ax.def(target)
    define/decorate an object with additional constants, properties and methods with a chain of method calls. to define a new object:
        var obj = ax.def().constant(...).property(...).method(...).end();
    
    to decorate an existing object:
        ax.def(obj).constant(...).property(...).method(...).end();
    
    Parameters:
    {object} target
    (optional)
    Returns:
    {AxDef}
  • <static> {AxError} ax.error(code, message, cause)
    factory method to create new "AxError" object.
    Defined in: ax_error.js.
    Parameters:
    {number} code
    (optional. default: -1)
    {string} message
    (optional. default: "<>")
    {Error} cause
    (optional. default: null)
    Deprecated:
    use new ax.AxError(...)
    Returns:
    {AxError}
    See:
    AxError
  • <static> {boolean} ax.isArray(arg)
    check whether "arg" is "array".
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> {boolean} ax.isArrayLike(arg)
    check whether "arg" is "array-like"(NodeList, arguments, ... and so on).
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> {boolean} ax.isBoolean(arg)
    check whether "arg" is "boolean".
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> {boolean} ax.isError(err)
    check whether "err" is "AxError" object.
    Defined in: ax_error.js.
    Parameters:
    {object} err
    Deprecated:
    use err instanceof ax.AxError
    Returns:
    {boolean}
    See:
    AxError
  • <static> {boolean} ax.isFunction(arg)
    check whether "arg" is "function".
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> {boolean} ax.isNumber(arg)
    check whether "arg" is "number".
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> {boolean} ax.isObject(arg)
    check whether "arg" is "object".
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> {boolean} ax.isPlugin(obj)
    check where "obj" is "AxPlugin" object.
    Defined in: ax_plugin.js.
    Parameters:
    {object} obj
    Returns:
    {boolean}
  • <static> {boolean} ax.isRequest(req)
    check whether "req" is "AxRequest" object.
    Defined in: ax_request.js.
    Parameters:
    {AxRequest} req
    Returns:
    {boolean}
    See:
    AxRequest
  • <static> {boolean} ax.isString(arg)
    check whether "arg" is "string".
    Parameters:
    {*} arg
    Returns:
    {boolean}
  • <static> ax.log(text, var_args)
    log for plugin developer.
    ax.log('1 token, 0 args ({0})'); // 1 token, 0 args ({0})
    ax.log('1 token, 1 args ({0})', 'arg1'); // 1 token, 1 args (arg1)
    ax.log('1 tokens, 2 args ({0})', 'arg1', 'arg2'); // 1 tokens, 2 args (arg1)
    ax.log('2 tokens, 2 args ({0},{1})', 'arg1', 'arg2'); // 2 tokens, 2 args (arg1,arg2)
    ax.log('2 tokens swapped, 2 args ({1},{0})', 'arg1', 'arg2'); // 2 tokens swapped, 2 args (arg2,arg1)
    ax.log('4 tokens interwoven, 2 args ({0},{1},{0},{1})', 'arg1', 'arg2'); // 4 tokens interwoven, 2 args (arg1,arg2,arg1,arg2)
    
    Parameters:
    {string} text
    {...*} var_args
  • <static> ax.nop()
    no operation. used for dummy callback.
  • <static> {AxPlugin} ax.plugin(name, obj, ns)
    factory method to create new "AxPlugin" object.
    Defined in: ax_plugin.js.
    Parameters:
    {string} name
    {object} obj
    {string} ns
    (optional)
    Returns:
    {AxPlugin}
  • <static> {AxRequest} ax.request(method, params)
    factory methtod to create new "AxRequest" object.
    Defined in: ax_request.js.
    Parameters:
    {string} method
    {array} params
    Returns:
    {AxRequest}
    See:
    AxRequest

    API Reference

    • Deviceapis
    • Devicestatus
    • Device Interaction
    • Contact
    • Accelerometer
    • Orientation
    • Geolocation
    • Camera
    • Messaging
    • Filesystem
    • Appspresso
      • ax
      • AxDef
      • AxPlugin
      • AxRequest
      • ax.bridge
      • ax.console
      • ax.util
    • Appspresso Extension
      • ax.ext.admob
      • ax.ext.android
      • ax.ext.contact
      • ax.ext.ios
      • ax.ext.ga
      • ax.ext.media
      • ax.ext.net
      • ax.ext.ui
      • ax.ext.zip
RSS
Twitter
© 2011 Appspresso.com . powered by Wordpress