mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-19 02:17:10 +08:00

* style(canva-camera): fix angular style * style(crop): fix angular style * style(file-chooser): fix angular style * style(file-opener): fix angular style * style(file): fix angular style * style(inappbrowser): fix angular style * style(instagram): fix angular style * style(is-debug): fix angular style * style(native-page-transitions): fix angular style * style(market): fix angular style * style(music-controls): fix angular style * style(nfc): fix angular style * style(pay-pal): fix angular style * style(power-management): fix angular style * style(securestorage): fix angular style * style(streaming-media): fix angular style * style(video-editor): fix angular style * style(youtube-video-player): fix angular style
31 lines
643 B
TypeScript
31 lines
643 B
TypeScript
import { Plugin, Cordova } from './plugin';
|
|
/**
|
|
* @name FileChooser
|
|
* @description
|
|
*
|
|
* Opens the file picker on Android for the user to select a file, returns a file URI.
|
|
*
|
|
* @usage
|
|
* ```
|
|
* import {FileChooser} from 'ionic-native';
|
|
*
|
|
* FileChooser.open()
|
|
* .then(uri => console.log(uri);
|
|
* .catch(e => console.log(e);
|
|
*
|
|
* ```
|
|
*/
|
|
@Plugin({
|
|
plugin: 'http://github.com/don/cordova-filechooser.git',
|
|
pluginRef: 'fileChooser',
|
|
repo: 'https://github.com/don/cordova-filechooser',
|
|
platforms: ['Android']
|
|
})
|
|
export class FileChooser {
|
|
/**
|
|
* Open a file
|
|
*/
|
|
@Cordova()
|
|
static open(): Promise<string> { return; }
|
|
}
|