public void OnPrintSuccess() { if (Debug.isDebugBuild) { Debug.Log("Print success."); } AGPrintHelper.OnPrintSuccess(); }
public void OnPrintHtmlFromUrl() { if (AGPrintHelper.SystemSupportsPrint) { AGPrintHelper.PrintHtmlPageFromUrl("https://ninevastudios.com/", PrintJobName); } else { AGUIMisc.ShowToast("Printing is not supported"); } }
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"); } }
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"); } }