Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@whiteguru/capacitor-plugin-file-opener

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whiteguru/capacitor-plugin-file-opener

Capacitor plugin to open files

  • 6.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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(...)
  • Interfaces

open(...)

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

Interfaces

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

Keywords

FAQs

Package last updated on 05 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc