Print API tweaks.
Change-Id: I4fcf93f17495740e8b8d0dc4e425a89862716b42
This commit is contained in:
@@ -18551,7 +18551,7 @@ package android.print {
|
||||
method public android.print.PrintAttributes getAttributes();
|
||||
method public int getId();
|
||||
method public java.lang.CharSequence getLabel();
|
||||
method public android.print.PageRange[] getPageRanges();
|
||||
method public android.print.PageRange[] getPages();
|
||||
method public android.print.PrinterId getPrinterId();
|
||||
method public int getState();
|
||||
method public java.lang.String getTag();
|
||||
@@ -18572,10 +18572,6 @@ package android.print {
|
||||
method public android.print.PrintJob print(java.lang.String, android.print.PrintAdapter, android.print.PrintAttributes);
|
||||
}
|
||||
|
||||
public static abstract interface PrintManager.PrintJobStateListener {
|
||||
method public abstract void onStateChanged(int);
|
||||
}
|
||||
|
||||
public final class PrinterId implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method public java.lang.String getLocalId();
|
||||
|
||||
@@ -261,22 +261,22 @@ public final class PrintJobInfo implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the included page ranges.
|
||||
* Gets the included pages.
|
||||
*
|
||||
* @return The included page ranges or <code>null</code> if not set.
|
||||
* @return The included pages or <code>null</code> if not set.
|
||||
*/
|
||||
public PageRange[] getPageRanges() {
|
||||
public PageRange[] getPages() {
|
||||
return mPageRanges;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the included page ranges.
|
||||
* Sets the included pages.
|
||||
*
|
||||
* @return The included page ranges.
|
||||
* @return The included pages.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void setPageRanges(PageRange[] pageRanges) {
|
||||
public void setPages(PageRange[] pageRanges) {
|
||||
mPageRanges = pageRanges;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,13 +69,6 @@ public final class PrintManager {
|
||||
|
||||
private final Handler mHandler;
|
||||
|
||||
/**
|
||||
* Listener for the state of a print job.
|
||||
*/
|
||||
public static interface PrintJobStateListener {
|
||||
public void onStateChanged(int state);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user