Skip to content

Commit

Permalink
fix(index-app-content): add missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsogl authored Jun 25, 2018
1 parent e61d574 commit 8d57198
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/@ionic-native/plugins/index-app-content/index.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8d57198

Please sign in to comment.