gallery-video-picker
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -6,2 +6,6 @@ declare module '@capacitor/core' { | ||
} | ||
export declare enum PickerVideoType { | ||
CAMERA = 0, | ||
GALLERY = 1 | ||
} | ||
export interface PickerVideoOptions { | ||
@@ -20,4 +24,8 @@ readonly sizeLimit: number; | ||
} | ||
export interface PickerVideoPermissions { | ||
readonly permissionType: PickerVideoType; | ||
} | ||
export interface GalleryVideoPickerPlugin { | ||
getVideoFromGallery(options: PickerVideoOptions): Promise<PickerVideoResults>; | ||
getPermissions(options: PickerVideoPermissions): Promise<any>; | ||
} |
@@ -0,1 +1,6 @@ | ||
export var PickerVideoType; | ||
(function (PickerVideoType) { | ||
PickerVideoType[PickerVideoType["CAMERA"] = 0] = "CAMERA"; | ||
PickerVideoType[PickerVideoType["GALLERY"] = 1] = "GALLERY"; | ||
})(PickerVideoType || (PickerVideoType = {})); | ||
//# sourceMappingURL=definitions.js.map |
@@ -0,2 +1,3 @@ | ||
export * from './definitions'; | ||
export * from './web'; | ||
//# sourceMappingURL=index.js.map |
import { WebPlugin } from '@capacitor/core'; | ||
import { GalleryVideoPickerPlugin, PickerVideoOptions, PickerVideoResults } from './definitions'; | ||
import { GalleryVideoPickerPlugin, PickerVideoOptions, PickerVideoPermissions, PickerVideoResults } from './definitions'; | ||
export declare class GalleryVideoPickerWeb extends WebPlugin implements GalleryVideoPickerPlugin { | ||
constructor(); | ||
getVideoFromGallery(options: PickerVideoOptions): Promise<PickerVideoResults>; | ||
getPermissions(options: PickerVideoPermissions): Promise<any>; | ||
} | ||
declare const GalleryVideoPicker: GalleryVideoPickerWeb; | ||
export { GalleryVideoPicker }; |
@@ -24,2 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
getPermissions(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.log(options); | ||
return { error: 'Unsupported' }; | ||
}); | ||
} | ||
} | ||
@@ -26,0 +32,0 @@ const GalleryVideoPicker = new GalleryVideoPickerWeb(); |
@@ -1,4 +0,10 @@ | ||
var capacitorPlugin = (function (exports, core) { | ||
var galleryVideoPicker = (function (exports, core) { | ||
'use strict'; | ||
exports.PickerVideoType = void 0; | ||
(function (PickerVideoType) { | ||
PickerVideoType[PickerVideoType["CAMERA"] = 0] = "CAMERA"; | ||
PickerVideoType[PickerVideoType["GALLERY"] = 1] = "GALLERY"; | ||
})(exports.PickerVideoType || (exports.PickerVideoType = {})); | ||
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -26,2 +32,8 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
} | ||
getPermissions(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.log(options); | ||
return { error: 'Unsupported' }; | ||
}); | ||
} | ||
} | ||
@@ -28,0 +40,0 @@ const GalleryVideoPicker = new GalleryVideoPickerWeb(); |
{ | ||
"name": "gallery-video-picker", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "This plugin is used to get video from gallery", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
352875
176