capacitor-webnativeview
v0.0.83
Published
Allow to embeb android native view like MapView as a canvas inside webview
Downloads
83
Readme
capacitor-webnativeview
Allow to embeb android native view like MapView as a canvas inside webview
Install
npm install capacitor-webnativeview
npx cap sync
API
invoke(...)
invokeObject(...)
setSize(...)
dispose(...)
update(...)
getViewData(...)
createView(...)
createObject(...)
lock(...)
unlock(...)
addListener('invalidate', ...)
createHandler(...)
awaitEvent(...)
bindEventToMethod(...)
- Interfaces
invoke(...)
invoke(options: { viewId: number; methodId: number; params: string[]; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------------------------------------------- |
| options
| { viewId: number; methodId: number; params: string[]; } |
Returns: Promise<any>
invokeObject(...)
invokeObject(options: { viewId: number; methodId: number; params: string[]; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------------------------------------------- |
| options
| { viewId: number; methodId: number; params: string[]; } |
Returns: Promise<any>
setSize(...)
setSize(options: { viewId: number; width: number; height: number; }) => Promise<any>
| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options
| { viewId: number; width: number; height: number; } |
Returns: Promise<any>
dispose(...)
dispose(options: { viewId: number; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------- |
| options
| { viewId: number; } |
Returns: Promise<any>
update(...)
update(options: { viewId: number; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------- |
| options
| { viewId: number; } |
Returns: Promise<any>
getViewData(...)
getViewData(options: { viewId: number; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------- |
| options
| { viewId: number; } |
Returns: Promise<any>
createView(...)
createView(options: { name: string; }) => Promise<any>
| Param | Type |
| ------------- | ------------------------------ |
| options
| { name: string; } |
Returns: Promise<any>
createObject(...)
createObject(options: { name: string; }) => Promise<any>
| Param | Type |
| ------------- | ------------------------------ |
| options
| { name: string; } |
Returns: Promise<any>
lock(...)
lock(options: { viewId: number; left: number; top: number; width: number; height: number; }) => Promise<any>
| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------ |
| options
| { viewId: number; left: number; top: number; width: number; height: number; } |
Returns: Promise<any>
unlock(...)
unlock(options: {}) => Promise<any>
| Param | Type |
| ------------- | --------------- |
| options
| {} |
Returns: Promise<any>
addListener('invalidate', ...)
addListener(eventName: 'invalidate', listenerFunc: (info: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
| Param | Type |
| ------------------ | ----------------------------------- |
| eventName
| 'invalidate' |
| listenerFunc
| (info: any) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
createHandler(...)
createHandler(options: { name: string; targetMethod: string; eventName: string; }) => Promise<any>
| Param | Type |
| ------------- | ----------------------------------------------------------------------- |
| options
| { name: string; targetMethod: string; eventName: string; } |
Returns: Promise<any>
awaitEvent(...)
awaitEvent(options: { viewId: number; methodId: number; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------------------------- |
| options
| { viewId: number; methodId: number; } |
Returns: Promise<any>
bindEventToMethod(...)
bindEventToMethod(options: { objId: number; methodId: number; eventName: string; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------------------------------------------- |
| options
| { objId: number; methodId: number; eventName: string; } |
Returns: Promise<any>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |