getInfo method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'PrintJob.getInfo', apiUrl: 'https://developer.android.com/reference/android/print/PrintJob#getInfo()'), IOSPlatform(), MacOSPlatform(), WindowsPlatform()])
Future<PrintJobInfo?> getInfo()

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:

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',
  );
}