mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
fix(index-app-content): remove onItemPressed function
fix(index-app-content): remove onItemPressed function
This commit is contained in:
commit
428b36e948
@ -1,6 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Plugin, Cordova, CordovaFunctionOverride, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
|
||||||
|
|
||||||
export interface IndexItem {
|
export interface IndexItem {
|
||||||
domain: string;
|
domain: string;
|
||||||
@ -72,7 +71,6 @@ export interface IndexItem {
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class IndexAppContent extends IonicNativePlugin {
|
export class IndexAppContent extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The option to index app content might not be available at all due to device limitations or user settings.
|
* The option to index app content might not be available at all due to device limitations or user settings.
|
||||||
* Therefore it's highly recommended to check upfront if indexing is possible.
|
* Therefore it's highly recommended to check upfront if indexing is possible.
|
||||||
@ -93,16 +91,6 @@ export class IndexAppContent extends IonicNativePlugin {
|
|||||||
return;
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear all items stored for a given array of domains
|
* Clear all items stored for a given array of domains
|
||||||
* @param {Array<string>} Array of domains to clear
|
* @param {Array<string>} Array of domains to clear
|
||||||
@ -132,5 +120,4 @@ export class IndexAppContent extends IonicNativePlugin {
|
|||||||
setIndexingInterval(intervalMinutes: number) {
|
setIndexingInterval(intervalMinutes: number) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user