Ti.AirPrint Module

Description

Exposes the AirPrint API to Titanium Mobile applications.

Getting Started

View the Using Titanium Modules document for instructions on getting started with using this module in your application.

Accessing the Ti.AirPrint Module

To access this module from JavaScript, you would do the following:

var AirPrint = require('ti.airprint');

Functions

Ti.AirPrint.print({...})

Prints a document by showing a popover on the iPad or a modal window on other iOS devices.

Arguments

Takes one argument, a dictionary with the following keys:

Ti.AirPrint.canPrint()

Returns whether or not the current device supports printing. Note that a printer does not need to be attached for this to return true.

Usage

See example.

Author

Dawson Toth

Feedback and Support

Please direct all questions, feedback, and concerns to info@appcelerator.com.

License

Copyright(c) 2010-2013 by Appcelerator, Inc. All Rights Reserved. Please see the LICENSE file included in the distribution for further details.