Skip to content

Commit

Permalink
fix(open-native-settings): allow supported input (#2666)
Browse files Browse the repository at this point in the history
* allow supported input

* Update index.ts
  • Loading branch information
briznad authored and danielsogl committed Aug 31, 2018
1 parent a0a64da commit be0dc3d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/@ionic-native/plugins/open-native-settings/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core';
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Open Native Settings
* @description
* Plugin to open native screens of iOS/android settings
* @usage
* Plugin to open native screens of iOS/android settings
* @usage
* You can open any of these settings:
* ```
* "about", // ios
Expand Down Expand Up @@ -78,7 +78,7 @@ import { Injectable } from '@angular/core';
"wifi_ip", // android
"wifi", // ios, android
"wireless" // android
```
```
* ```typescript
* import { OpenNativeSettings } from '@ionic-native/open-native-settings';
*
Expand All @@ -99,13 +99,13 @@ import { Injectable } from '@angular/core';
})
@Injectable()
export class OpenNativeSettings extends IonicNativePlugin {

/**
* Opens a setting dialog
* @param setting {string} setting name
* @param setting {string|array} setting name
* @return {Promise<any>}
*/
@Cordova()
open(setting: string): Promise<any> { return; }

open(setting: string | [string, boolean]): Promise<any> {
return;
}
}

0 comments on commit be0dc3d

Please sign in to comment.