1 rating
  • 1
  • 2
  • 3
  • 4
  • 5
5 star 1
4 star 0
3 star 0
2 star 0
1 star 0
Compatible with
  • iOS
  • Android

Google Cloud Print 1.0

Justin Moses

Add a little print anywhere.

Google Cloud Print for Xamarin.IOS and Xamarin.Android.

Includes Printer Sharing.

The github repository is public.

https://github.com/slackshot/MonoGCP

using Google.CloudPrint;
...

void Print ()
{
    var printer = new GoogleCloudPrint {
        UserName = "username",
        Password = "password"
    };

    if (printer.GetPrinters ().success) {
        var data = File.ReadAllBytes ("dropbox.pdf");
        var job = printer.PrintDocument (printer.Printers[0].id, "Title", data, "application/pdf");
        new UIAlertView ("Print Job", job.success ? "Succeeded" : "Failed", null, "Ok", null).Show ();
    }
}
Be the first to write a review