mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2024-10-07 08:32:13 +08:00
fix(open-native-settings): allow supported input (#2666)
* allow supported input * Update index.ts
This commit is contained in:
parent
a0a64da518
commit
be0dc3dac4
@ -1,11 +1,11 @@
|
|||||||
import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core';
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Open Native Settings
|
* @name Open Native Settings
|
||||||
* @description
|
* @description
|
||||||
* Plugin to open native screens of iOS/android settings
|
* Plugin to open native screens of iOS/android settings
|
||||||
* @usage
|
* @usage
|
||||||
* You can open any of these settings:
|
* You can open any of these settings:
|
||||||
* ```
|
* ```
|
||||||
* "about", // ios
|
* "about", // ios
|
||||||
@ -78,7 +78,7 @@ import { Injectable } from '@angular/core';
|
|||||||
"wifi_ip", // android
|
"wifi_ip", // android
|
||||||
"wifi", // ios, android
|
"wifi", // ios, android
|
||||||
"wireless" // android
|
"wireless" // android
|
||||||
```
|
```
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import { OpenNativeSettings } from '@ionic-native/open-native-settings';
|
* import { OpenNativeSettings } from '@ionic-native/open-native-settings';
|
||||||
*
|
*
|
||||||
@ -99,13 +99,13 @@ import { Injectable } from '@angular/core';
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class OpenNativeSettings extends IonicNativePlugin {
|
export class OpenNativeSettings extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens a setting dialog
|
* Opens a setting dialog
|
||||||
* @param setting {string} setting name
|
* @param setting {string|array} setting name
|
||||||
* @return {Promise<any>}
|
* @return {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
open(setting: string): Promise<any> { return; }
|
open(setting: string | [string, boolean]): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user