com.dynamixsoftware.intentapi
Interface IIntentAPI

All Known Implementing Classes:
IIntentAPI.Stub

public interface IIntentAPI


Nested Class Summary
static class IIntentAPI.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 IPrinterInfo getCurrentPrinter()
          Tries to get current printer.
 java.util.List<PrintHandOption> getFilesOptions()
           
 java.util.List<PrintHandOption> getImagesOptions()
           
 java.util.List<java.lang.String> getPrintJobs()
           
 boolean print(java.lang.String jobName, IJob job, int copies)
          Starts printing on current printer
 void printPHrendering(java.lang.String jobName, java.lang.String mimeType, android.net.Uri uri)
           
 void removePrintJob(java.lang.String printJobName)
           
 void setDocument(IDocument document)
          Sets IDocument for printing.
 void setFilesOptions(java.util.List<PrintHandOption> options)
           
 void setImagesOptions(java.util.List<PrintHandOption> options)
           
 void setLicense(java.lang.String id, ISetLicenseCallback licenseCallback)
           
 void setPrintCallback(IPrintCallback printCallback)
          Callback can be set for control printing process.
 void setServiceCallback(IServiceCallback serviceCallback)
          Callback can be set for control service processes.
 

Method Detail

getCurrentPrinter

IPrinterInfo getCurrentPrinter()
                               throws android.os.RemoteException
Tries to get current printer.

Returns:
current printer info or null.
Throws:
android.os.RemoteException

print

boolean print(java.lang.String jobName,
              IJob job,
              int copies)
              throws android.os.RemoteException
Starts printing on current printer

Parameters:
job - name
job - to be printed
copies - number
Returns:
true if printing ended successfully
Throws:
android.os.RemoteException

setPrintCallback

void setPrintCallback(IPrintCallback printCallback)
                      throws android.os.RemoteException
Callback can be set for control printing process.

Parameters:
printCallback - to be set.
Throws:
android.os.RemoteException

setServiceCallback

void setServiceCallback(IServiceCallback serviceCallback)
                        throws android.os.RemoteException
Callback can be set for control service processes.

Parameters:
serviceCallback - to be set.
Throws:
android.os.RemoteException

setDocument

void setDocument(IDocument document)
                 throws android.os.RemoteException
Sets IDocument for printing.

Parameters:
printCallback - to be set.
Throws:
android.os.RemoteException

setLicense

void setLicense(java.lang.String id,
                ISetLicenseCallback licenseCallback)
                throws android.os.RemoteException
Throws:
android.os.RemoteException

getPrintJobs

java.util.List<java.lang.String> getPrintJobs()
                                              throws android.os.RemoteException
Throws:
android.os.RemoteException

removePrintJob

void removePrintJob(java.lang.String printJobName)
                    throws android.os.RemoteException
Throws:
android.os.RemoteException

printPHrendering

void printPHrendering(java.lang.String jobName,
                      java.lang.String mimeType,
                      android.net.Uri uri)
                      throws android.os.RemoteException
Throws:
android.os.RemoteException

getImagesOptions

java.util.List<PrintHandOption> getImagesOptions()
                                                 throws android.os.RemoteException
Throws:
android.os.RemoteException

getFilesOptions

java.util.List<PrintHandOption> getFilesOptions()
                                                throws android.os.RemoteException
Throws:
android.os.RemoteException

setImagesOptions

void setImagesOptions(java.util.List<PrintHandOption> options)
                      throws android.os.RemoteException
Throws:
android.os.RemoteException

setFilesOptions

void setFilesOptions(java.util.List<PrintHandOption> options)
                     throws android.os.RemoteException
Throws:
android.os.RemoteException