mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-19 07:03:03 +08:00
21 lines
315 B
TypeScript
21 lines
315 B
TypeScript
import {Plugin, Cordova} from './plugin';
|
|
|
|
@Plugin({
|
|
name: 'Camera',
|
|
plugin: 'cordova-plugin-camera',
|
|
pluginRef: 'navigator.camera'
|
|
})
|
|
export class Camera {
|
|
@Cordova({
|
|
successIndex: 0,
|
|
errIndex: 1
|
|
})
|
|
static getPicture;
|
|
|
|
@Cordova({
|
|
successIndex: 0,
|
|
errIndex: 1
|
|
})
|
|
static cleanup;
|
|
}
|