fix(index-app-content): add missing function

This commit is contained in:
Daniel Sogl 2018-06-25 20:08:28 +02:00 committed by GitHub
parent e61d574849
commit 8d571989d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
export interface IndexItem {
domain: string;
@ -110,6 +111,16 @@ export class IndexAppContent extends IonicNativePlugin {
clearItemsForIdentifiers(identifiers: Array<string>): Promise<any> {
return;
}
/**
* If user taps on a search result in spotlight then the app will be launched.
* You can register a Javascript handler to get informed when this happens.
* @returns {Observable<any>} returns an observable that notifies you when he user presses on the home screen icon
*/
@CordovaFunctionOverride()
onItemPressed(): Observable<any> {
return;
}
/**
* You might want to avoid to update spotlight index too frequently.