FreeRDP
Loading...
Searching...
No Matches
com.freerdp.freerdpcore.presentation.PrintProxyActivity Class Reference
Inheritance diagram for com.freerdp.freerdpcore.presentation.PrintProxyActivity:
Collaboration diagram for com.freerdp.freerdpcore.presentation.PrintProxyActivity:

Protected Member Functions

void onCreate (Bundle savedInstanceState)
 
void onDestroy ()
 

Detailed Description

Transparent activity that shows the Android print dialog for a PDF URI. Stays alive until the print job reaches a terminal state, then finishes.

Definition at line 36 of file PrintProxyActivity.java.

Member Function Documentation

◆ onCreate()

void com.freerdp.freerdpcore.presentation.PrintProxyActivity.onCreate ( Bundle  savedInstanceState)
inlineprotected

Definition at line 53 of file PrintProxyActivity.java.

54 {
55 super.onCreate(savedInstanceState);
56
57 Uri uri = getIntent().getData();
58 if (uri == null)
59 {
60 finish();
61 return;
62 }
63
64 PrintManager pm = (PrintManager)getSystemService(Context.PRINT_SERVICE);
65 printJob = pm.print(uri.getLastPathSegment(), new PdfAdapter(this, uri), null);
66 handler.postDelayed(pollJob, 500);
67 }

◆ onDestroy()

void com.freerdp.freerdpcore.presentation.PrintProxyActivity.onDestroy ( )
inlineprotected

Definition at line 69 of file PrintProxyActivity.java.

70 {
71 handler.removeCallbacks(pollJob);
72 super.onDestroy();
73 }

The documentation for this class was generated from the following file: