feat(lets-cooee): add event observer and installation documentation (#4278)

* feat(Cooee): add Cooee plugin

* chore(Cooee): update document

* Update index.ts

* feat(lets-cooee): add event observable

* docs(lets-cooee): add lets-cooee documentation

Co-authored-by: Daniel Sogl <daniel@sogls.de>
This commit is contained in:
Ashish Gaikwad
2022-09-05 22:34:37 +05:30
committed by GitHub
parent a801c7d305
commit aef160e418
2 changed files with 52 additions and 0 deletions
@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core';
import { Observable } from 'rxjs';
/**
* @name Lets Cooee
@@ -72,4 +73,17 @@ export class Cooee extends AwesomeCordovaNativePlugin {
getUserID(): Promise<any> {
return;
}
/**
* Provides callback for the onCooeeCTAListener event.
* @return {Observable<Any>} Returns an observable record.
*/
@Cordova({
eventObservable: true,
event: 'onCooeeCTAListener',
element: document,
})
addCooeeCTAListener(): Observable<any> {
return;
}
}