6.0.1 • Published 1 year ago

capacitor-webview-print v6.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 sync

Maintainers

MaintainerGitHub
Yasin Şimşek5uper

Versions

PluginCapacitor
6.x.x6.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

ParamTypeDescription
optionsPrintOptionsThe print options

Since: 6.0.0


Interfaces

PrintOptions

PropTypeDescriptionSince
namestringName of the file to be printed. This is an required attribute.6.0.0
6.0.1

1 year ago

6.0.0

1 year ago