forked from NativeScript/nativescript-sdk-examples-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NativeScript#165 from NativeScript/tsonevn_revamp
feat: update application-settings/color examples
- Loading branch information
Showing
36 changed files
with
198 additions
and
557 deletions.
There are no files selected for viewing
6 changes: 2 additions & 4 deletions
6
app/ns-framework-modules-category/application-settings/application-settings-page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
app/ns-framework-modules-category/application-settings/basics/article.md
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/ns-framework-modules-category/application-settings/basics/basics-page.css
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
app/ns-framework-modules-category/application-settings/basics/basics-page.js
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
app/ns-framework-modules-category/application-settings/basics/basics-page.xml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/ns-framework-modules-category/application-settings/basics/basics-ts-page.css
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
app/ns-framework-modules-category/application-settings/basics/basics-ts-page.ts
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
app/ns-framework-modules-category/application-settings/basics/basics-ts-page.xml
This file was deleted.
Oops, something went wrong.
27 changes: 25 additions & 2 deletions
27
app/ns-framework-modules-category/application-settings/end.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
**Native Component** | ||
## Methods | ||
|
||
| Name | Type | Description | | ||
|----------|---------|----------------| | ||
| `clear` | `void` | Removes all stored values. | | ||
| `flush` | `boolean` | Flush all changes to disk synchronously. The return flag indicates if changes were saved successfully to disk. | | ||
| `getAllKeys` | `Array<string>` | Array containing all stored keys | | ||
| `getBoolean(key: string, deafaultValue?: boolean)` | `boolean` | Gets a value (if existing) for a key as a Boolean Object. A default value can be provided in case there is no existing value. | | ||
| `getNumber(key: string, deafaultValue?: number)` | `number` | Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value | | ||
| `getString(key: string, deafaultValue?: string)` | `string` | Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value. | | ||
| `hasKey(key: string)` | `boolean` | Checks whether such a key exists. | | ||
| `remove` | `void` | Removes an entry by its key name. | | ||
| `setBoolean(key: string, value: boolean)` | `void` | Sets a Boolean Object for a key. | | ||
| `setNumber(key: string, value: number)` | `void` | Sets a Number Object for a key. | | ||
| `setString(key: string, value: string)` | `void` | Sets a String Object for a key. | | ||
|
||
|
||
## API References | ||
|
||
| Name | Type | | ||
|----------|---------| | ||
| [tns-core-modules/application-settings](https://docs.nativescript.org/api-reference/modules/_application_settings_.html) | `Module` | | ||
|
||
## Native Component | ||
|
||
| Android | iOS | | ||
|:----------------------|:---------| | ||
| [android.content.SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) | [NSUserDefaults](https://developer.apple.com/documentation/foundation/userdefaults) | | ||
| [android.content.SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html) | [NSUserDefaults](https://developer.apple.com/documentation/foundation/nsuserdefaults) | |
3 changes: 0 additions & 3 deletions
3
app/ns-framework-modules-category/application-settings/native-access/article.md
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
app/ns-framework-modules-category/application-settings/native-access/native-access-page.css
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
app/ns-framework-modules-category/application-settings/native-access/native-access-page.js
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
app/ns-framework-modules-category/application-settings/native-access/native-access-page.xml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...s-framework-modules-category/application-settings/native-access/native-access-ts-page.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.