Socket
Socket
Sign inDemoInstall

com.peerio.cordova.plugin.open

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    com.peerio.cordova.plugin.open

Open audio, video, images and more with applications installed on the user's device


Version published
Weekly downloads
7
increased by250%
Maintainers
1
Install size
19.6 kB
Created
Weekly downloads
 

Readme

Source

cordova-open

Build Status Code Climate

Open audio, video, images and more with applications installed on the user's device.

Install

$ cordova plugin add cordova-open

Usage

var open = cordova.plugins.disusered.open;

function success() {
  console.log('Success');
}

function error(code) {
  if (code === 1) {
    console.log('No file handler found');
  } else {
    console.log('Undefined error');
  }
}

open('file:/storage/sdcard/DCIM/Camera/1404177327783.jpg', success, error);

API

The plugin exposes the following methods:

cordova.plugins.disusered.open(file, success, error, trustAllCertificates)
Parameters:
  • file: A string representing a URI
  • success: Optional success callback
  • error: Optional error callback
  • trustAllCertificates: Optional, trusts any certificate when the connection is done over HTTPS.
Events:
  • pause: Opening files emits Cordova's pause event
  • resume: Closing the file emits Cordova's resume event
  • open.success: File is found and can be opened
  • open.error: File not found, or no file handler is installed

License

MIT © Carlos Rosquillas

Keywords

FAQs

Last updated on 10 Sep 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc