@hanwha-ss1/capacitor-plugin-hanwha-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

capacitor-plugin-hanwha-viewer

Viewer

Install

npm install capacitor-plugin-hanwha-viewer
npx cap sync

Example

import { Viewer } from 'capacitor-plugin-hanwha-viewer';
let file = [
  { key: '1', ext: 'pdf', name: '첨부파일예제.pdf', url: 'https://naver.com' },
  { key: '2', ext: 'pdf', name: '첨부파일예제2.pdf', url: 'https://daum.net' },
  { key: '3', ext: 'doc', name: '첨부파일예제3.doc', url: 'https://nate.com' },
];

await Viewer.load({ items: JSON.stringify(file), token: '토큰 값' });

API

load(...)

load(options: { items: string; token?: string; }) => Promise<{ value: string; }>
Param Type Description
options { items: string; token?: string; } items : "{ key: (index), ext: (확장자), name: (파일명), url: (파일주소) }" (optional)token : accessToken값

Returns: Promise<{ value: string; }>


Readme

Keywords

Package Sidebar

Install

npm i @hanwha-ss1/capacitor-plugin-hanwha-viewer

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

148 kB

Total Files

214

Last publish

Collaborators

  • yeongyun
  • nlplee