cancel method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'PrintJob.cancel', apiUrl: 'https://developer.android.com/reference/android/print/PrintJob#cancel()')])
Cancels this print job. You can request cancellation of a queued, started, blocked, or failed print job.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - PrintJob.cancel)
Use the PlatformPrintJobController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'PrintJob.cancel',
apiUrl:
'https://developer.android.com/reference/android/print/PrintJob#cancel()',
),
],
)
Future<void> cancel() {
throw UnimplementedError(
'cancel is not implemented on the current platform',
);
}