getInfo method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'PrintJob.getInfo', apiUrl: 'https://developer.android.com/reference/android/print/PrintJob#getInfo()'), IOSPlatform(), MacOSPlatform(), WindowsPlatform()])
Gets the PrintJobInfo that describes this job.
NOTE: The returned info object is a snapshot of the current print job state. Every call to this method returns a fresh info object that reflects the current print job state.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - PrintJob.getInfo)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
Use the PlatformPrintJobController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'PrintJob.getInfo',
apiUrl:
'https://developer.android.com/reference/android/print/PrintJob#getInfo()',
),
IOSPlatform(),
MacOSPlatform(),
WindowsPlatform(),
],
)
Future<PrintJobInfo?> getInfo() {
throw UnimplementedError(
'getInfo is not implemented on the current platform',
);
}