@bakai/capacitor-shared-image
v0.0.1
Published
Receives images from the system share sheet
Readme
@bakai/capacitor-shared-image
Receives images from the system share sheet
Install
To use npm
npm install @bakai/capacitor-shared-imageTo use yarn
yarn add @bakai/capacitor-shared-imageSync native files
npx cap syncAPI
getPendingImage()clearPendingImage(...)addListener('sharedImageReceived', ...)- Interfaces
- Type Aliases
getPendingImage()
getPendingImage() => Promise<Partial<SharedImageData>>Returns: Promise<Partial<SharedImageData>>
clearPendingImage(...)
clearPendingImage(options: { id: string; }) => Promise<void>| Param | Type |
| ------------- | ---------------------------- |
| options | { id: string; } |
addListener('sharedImageReceived', ...)
addListener(eventName: 'sharedImageReceived', listenerFunc: (image: SharedImageData) => void) => Promise<PluginListenerHandle>| Param | Type |
| ------------------ | ------------------------------------------------------------------------------- |
| eventName | 'sharedImageReceived' |
| listenerFunc | (image: SharedImageData) => void |
Returns: Promise<PluginListenerHandle>
Interfaces
SharedImageData
| Prop | Type |
| -------------- | ------------------- |
| id | string |
| path | string |
| mimeType | string |
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
Type Aliases
Partial
Make all properties in T optional
{ [P in keyof T]?: T[P]; }
