Skip to content

Commit 8d57198

Browse files
authored
fix(index-app-content): add missing function
1 parent e61d574 commit 8d57198

File tree

1 file changed

+11
-0
lines changed
  • src/@ionic-native/plugins/index-app-content

1 file changed

+11
-0
lines changed

src/@ionic-native/plugins/index-app-content/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Injectable } from '@angular/core';
22
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
3+
import { Observable } from 'rxjs/Observable';
34

45
export interface IndexItem {
56
domain: string;
@@ -110,6 +111,16 @@ export class IndexAppContent extends IonicNativePlugin {
110111
clearItemsForIdentifiers(identifiers: Array<string>): Promise<any> {
111112
return;
112113
}
114+
115+
/**
116+
* If user taps on a search result in spotlight then the app will be launched.
117+
* You can register a Javascript handler to get informed when this happens.
118+
* @returns {Observable<any>} returns an observable that notifies you when he user presses on the home screen icon
119+
*/
120+
@CordovaFunctionOverride()
121+
onItemPressed(): Observable<any> {
122+
return;
123+
}
113124

114125
/**
115126
* You might want to avoid to update spotlight index too frequently.

0 commit comments

Comments
 (0)