capacitor-webview-print
v7.0.0
Published
This is a Capacitor plugin for printing the webview. It supports the Web, iOS and Android Platform.
Maintainers
Readme
capacitor-webview-print
This is a Capacitor plugin for printing the webview. It supports the Web, iOS and Android Platform.
Install
npm install capacitor-webview-print
npx cap syncMaintainers
| Maintainer | GitHub |
| -------------- | --------------------------------- |
| Yasin Şimşek | 5uper |
Versions
| Plugin | Capacitor |
| ------- | --------- |
| 7.x.x | 7.x.x |
| 6.x.x | 6.x.x |
Configuration
No configuration required for this plugin.
Example
import { WebviewPrint } from 'capacitor-webview-print';
public async printWebview(fileName: string): Promise<void> {
await WebviewPrint.print({ name: fileName });
}
Platform Support
- Web
- iOS
- Android
API
print(...)
print(options: PrintOptions) => Promise<void>Trigger a webview print event
| Param | Type | Description |
| ------------- | ----------------------------------------------------- | ----------------- |
| options | PrintOptions | The print options |
Since: 6.0.0
Interfaces
PrintOptions
| Prop | Type | Description | Since |
| ---------- | ------------------- | -------------------------------------------------------------- | ----- |
| name | string | Name of the file to be printed. This is an required attribute. | 6.0.0 |
