docs(smartlook): extended usage sample (#3278)

* docs(smartlook): expanded usage sample

* docs(smartlook) fixed lint error

* Update index.ts

Co-authored-by: Daniel Sogl <daniel@sogls.de>
This commit is contained in:
František Spurný 2020-01-27 06:25:50 +01:00 committed by Daniel Sogl
parent 41895c165c
commit 7baeab9fee

View File

@ -64,20 +64,23 @@ export class SmartlookGlobalEventPropertyKey {
/** /**
* @name Smartlook * @name Smartlook
* @description * @description
* Official Smartlook SDK plugin. For more information visit (www.smartlook.com). * Official Smartlook SDK plugin.
* Full documentation can be found here: https://smartlook.github.io/docs/sdk/ionic/
* *
* @usage * @usage
* ```typescript * ```typescript
* import { Smartlook } from '@ionic-native/smartlook/ngx'; * import { Smartlook, SmartlookSetupConfig } from '@ionic-native/smartlook/ngx';
*
*
* constructor(private smartlook: Smartlook) { }
* *
* ... * ...
* *
* * @Component( ... )
* this.smartlook.setupAndStartRecording(new SmartlookSetupConfig("key")); * export class AppComponent {
* * constructor(private smartlook: Smartlook) {
* this.platform.ready().then(() => {
* this.smartlook.setupAndStartRecording(new SmartlookSetupConfig("YOUR API KEY"));
* }
* }
* }
* ``` * ```
* @classes * @classes
* SmartlookSetupConfig * SmartlookSetupConfig