1.0.0 • Published 9 months ago

capacitor-plugin-print-page v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

capacitor-plugin-print-page

A plugin to print the webpage of capacitor app. Available for Android and Web.

  • It uses window.print() method on web
  • Open up print window manager for android devices.

Install

npm install capacitor-plugin-print-page
npx cap sync

API

print()

print() => Promise<{ status: boolean; }>

Returns: Promise<{ status: boolean; }>


Usage

import { Printpage } from 'capacitor-plugin-print-page';

const App = async ()=>{
    const {status} = await Printpage.print();
}
1.0.0

9 months ago