Home | History | Annotate | Download | only in api
      1 package androidx.print {
      2 
      3   public final class PrintHelper {
      4     ctor public PrintHelper(android.content.Context);
      5     method public int getColorMode();
      6     method public int getOrientation();
      7     method public int getScaleMode();
      8     method public void printBitmap(java.lang.String, android.graphics.Bitmap);
      9     method public void printBitmap(java.lang.String, android.graphics.Bitmap, androidx.print.PrintHelper.OnPrintFinishCallback);
     10     method public void printBitmap(java.lang.String, android.net.Uri) throws java.io.FileNotFoundException;
     11     method public void printBitmap(java.lang.String, android.net.Uri, androidx.print.PrintHelper.OnPrintFinishCallback) throws java.io.FileNotFoundException;
     12     method public void setColorMode(int);
     13     method public void setOrientation(int);
     14     method public void setScaleMode(int);
     15     method public static boolean systemSupportsPrint();
     16     field public static final int COLOR_MODE_COLOR = 2; // 0x2
     17     field public static final int COLOR_MODE_MONOCHROME = 1; // 0x1
     18     field public static final int ORIENTATION_LANDSCAPE = 1; // 0x1
     19     field public static final int ORIENTATION_PORTRAIT = 2; // 0x2
     20     field public static final int SCALE_MODE_FILL = 2; // 0x2
     21     field public static final int SCALE_MODE_FIT = 1; // 0x1
     22   }
     23 
     24   public static abstract interface PrintHelper.OnPrintFinishCallback {
     25     method public abstract void onFinish();
     26   }
     27 
     28 }
     29 
     30