0.1.4 • Published 2 years ago

@hanwha-ss1/capacitor-plugin-hanwha-viewer v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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; }>
ParamTypeDescription
options{ items: string; token?: string; }items : "{ key: (index), ext: (확장자), name: (파일명), url: (파일주소) }" (optional)token : accessToken값

Returns: Promise<{ value: string; }>


0.1.4

2 years ago

0.0.1

2 years ago