File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/@ionic-native/plugins/index-app-content Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { Injectable } from '@angular/core' ;
2
2
import { Cordova , IonicNativePlugin , Plugin } from '@ionic-native/core' ;
3
+ import { Observable } from 'rxjs/Observable' ;
3
4
4
5
export interface IndexItem {
5
6
domain : string ;
@@ -110,6 +111,16 @@ export class IndexAppContent extends IonicNativePlugin {
110
111
clearItemsForIdentifiers ( identifiers : Array < string > ) : Promise < any > {
111
112
return ;
112
113
}
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
+ }
113
124
114
125
/**
115
126
* You might want to avoid to update spotlight index too frequently.
You can’t perform that action at this time.
0 commit comments