1.4.2 • Published 11 months ago

@liquid-state/docviewer v1.4.2

Weekly downloads
45
License
MIT
Repository
-
Last release
11 months ago

@liquid-state/docviewer

Liquid State Docviewer Plugin

Install

npm install @liquid-state/docviewer
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>

Useless api that can be used to test the plugin

ParamTypeDescription
options{ value: string; }value to echo back (no ui)

Returns: Promise<{ value: string; }>


launchNamedDocument(...)

launchNamedDocument(options: { name: string; page_slug?: string; config?: {}; }) => Promise<{ viewer_id: string; }>

Launch a built-in document using it's base file name (note: this is just the file name, not path)

ParamTypeDescription
options{ name: string; page_slug?: string; config?: {}; }name, page_slug and config

Returns: Promise<{ viewer_id: string; }>


launchDocument(...)

launchDocument(options: { url: string; page_slug?: string; config?: {}; }) => Promise<{ viewer_id: string; }>

Launch a document using a local (on ios: file, on android: content) url

ParamTypeDescription
options{ url: string; page_slug?: string; config?: {}; }url, page_slug and config

Returns: Promise<{ viewer_id: string; }>


closeViewerIfAny()

closeViewerIfAny() => Promise<void>

Close any currently open document viewer


1.4.2

11 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.3

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago