From 8d571989d4c685fabd1aef3f7b43f717a9ffe80c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Mon, 25 Jun 2018 20:08:28 +0200 Subject: [PATCH] fix(index-app-content): add missing function --- src/@ionic-native/plugins/index-app-content/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/@ionic-native/plugins/index-app-content/index.ts b/src/@ionic-native/plugins/index-app-content/index.ts index 3e8e8399c5..6b0545f01f 100644 --- a/src/@ionic-native/plugins/index-app-content/index.ts +++ b/src/@ionic-native/plugins/index-app-content/index.ts @@ -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): Promise { 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} returns an observable that notifies you when he user presses on the home screen icon + */ + @CordovaFunctionOverride() + onItemPressed(): Observable { + return; + } /** * You might want to avoid to update spotlight index too frequently.