예제 #1
0
        public void OnPrintSuccess()
        {
            if (Debug.isDebugBuild)
            {
                Debug.Log("Print success.");
            }

            AGPrintHelper.OnPrintSuccess();
        }
예제 #2
0
 public void OnPrintHtmlFromUrl()
 {
     if (AGPrintHelper.SystemSupportsPrint)
     {
         AGPrintHelper.PrintHtmlPageFromUrl("https://ninevastudios.com/", PrintJobName);
     }
     else
     {
         AGUIMisc.ShowToast("Printing is not supported");
     }
 }
예제 #3
0
 public void OnPrintHtmlText()
 {
     if (AGPrintHelper.SystemSupportsPrint)
     {
         const string htmlDocument = "<html><body><h1>Test Content</h1><p>Testing, testing, testing...</p></body></html>";
         AGPrintHelper.PrintHtmlPage(htmlDocument, PrintJobName);
     }
     else
     {
         AGUIMisc.ShowToast("Printing is not supported");
     }
 }
예제 #4
0
 public void OnPrintImage()
 {
     if (AGPrintHelper.SystemSupportsPrint)
     {
         AGPrintHelper.PrintImage(image, PrintJobName, () => { AGUIMisc.ShowToast("Printing success"); },
                                  AGPrintHelper.ColorModes.Monochrome, AGPrintHelper.Orientations.Landscape, AGPrintHelper.ScaleModes.Fill);
     }
     else
     {
         AGUIMisc.ShowToast("Printing is not supported");
     }
 }