6.0.1 • Published 1 year ago

@whiteguru/capacitor-plugin-file-opener v6.0.1

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

capacitor-plugin-file-opener

Capacitor plugin to open files

Install (Capacitor 6.x)

npm install @whiteguru/capacitor-plugin-file-opener
npx cap sync

or for Capacitor 5.x

npm install @whiteguru/capacitor-plugin-file-opener@^5.0.0
npx cap sync

or for Capacitor 4.x

npm install @whiteguru/capacitor-plugin-file-opener@^4.0.0
npx cap sync

or for Capacitor 3.x

npm install @whiteguru/capacitor-plugin-file-opener@1.1.4
npx cap sync

Setup Android

Add or update next lines inside <manifest> tag on your AndroidManifest.xml

<manifest>

  <!-- Rest of manifest -->

  <queries>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
      <data android:mimeType="application/pdf" />
    </intent>
  </queries>
</manifest>

API

open(...)

open(options: FileOpenerOptions) => Promise<void>
ParamType
optionsFileOpenerOptions

Interfaces

FileOpenerOptions

PropTypeDescription
pathstringPath to file
mimestringMime to select (optional, android only)
6.0.1

1 year ago

5.0.1

2 years ago

3.0.1

3 years ago

4.0.2-beta.1

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

4.0.2

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago