You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Note that version 1.3.0 added a synchronous version of this method that doesn't return a Promise. Need that? Use `availableSync` instead of `available`.
11
+
> **Note:** Version 1.3.0 added a synchronous version of this method that doesn't return a Promise. Need that? Use `availableSync` instead of `available`.
Copy file name to clipboardExpand all lines: packages/background-http/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ node server 8080
151
151
152
152
The above commands will start a server listening on port 8080. Remember to update the URL in your app to match the address/port where the server is running.
153
153
154
-
> Note: If you are using the iOS simulator then `http://localhost:8080` should be used to upload to the demo server. If you are using an Android emulator, `http://10.0.2.2:8080` should be used instead.
154
+
> **Note**: If you are using the iOS simulator then `http://localhost:8080` should be used to upload to the demo server. If you are using an Android emulator, `http://10.0.2.2:8080` should be used instead.
This command automatically installs the necessary files, as well as stores @nativescript/brightness as a dependency in your project's `package.json` file.
8
8
9
-
This plugin requires `<uses-permission android:name="android.permission.WRITE_SETTINGS"/>` to be added in the android manifest.
9
+
> **Note:**This plugin requires `<uses-permission android:name="android.permission.WRITE_SETTINGS"/>` to be added in the android manifest.
| cameraFacing | rear | Both | The initial camera facing. Use `'front'` for selfies. |
38
38
| modalPresentationStyle | 0 | iOS | Set a custom UIModalPresentationStyle (Defaults to UIModalPresentationStyle.FullScreen) |
39
39
40
-
> Note: The `saveToGallery` option might have unexpected behavior on Android! Some vendor camera apps (e.g. LG) will save all captured images to the gallery regardless of what the value of `saveToGallery` is. This behavior cannot be controlled by the camera plugin and if you must exclude the captured image from the photo gallery, you will need to get a local storage read/write permission and write custom code to find the gallery location and delete the new image from there.
40
+
> **Note**: The `saveToGallery` option might have unexpected behavior on Android! Some vendor camera apps (e.g. LG) will save all captured images to the gallery regardless of what the value of `saveToGallery` is. This behavior cannot be controlled by the camera plugin and if you must exclude the captured image from the photo gallery, you will need to get a local storage read/write permission and write custom code to find the gallery location and delete the new image from there.
41
41
42
42
## Usage
43
43
@@ -59,10 +59,9 @@ requestPermissions().then(
59
59
}
60
60
);
61
61
```
62
+
> **Note:** (**for Android**) Older versions of Android that don't use a request permissions popup won't be affected by the usage of the requestPermissions method.
62
63
63
-
> **Note for Android:** Older versions of Android that don't use a request permissions popup won't be affected by the usage of the requestPermissions method.
64
-
65
-
> **Note for iOS:** If the user rejects permissions from the iOS popup, the app is not allowed to ask again. You can instruct the user to go to app settings and enable the camera permission manually from there. Additionally, [App Store Guideline 5.1.1](https://developer.apple.com/app-store/review/guidelines/#data-collection-and-storage) requires apps to clarify the usage of the camera and photo library. To do so, edit your `app/App_Resources/iOS/Info.plist` and add the following clarifications:
64
+
> **Note**: (**for iOS**) If the user rejects permissions from the iOS popup, the app is not allowed to ask again. You can instruct the user to go to app settings and enable the camera permission manually from there. Additionally, [App Store Guideline 5.1.1](https://developer.apple.com/app-store/review/guidelines/#data-collection-and-storage) requires apps to clarify the usage of the camera and photo library. To do so, edit your `app/App_Resources/iOS/Info.plist` and add the following clarifications:
66
65
67
66
```
68
67
<key>NSCameraUsageDescription</key>
@@ -78,7 +77,7 @@ However, there are some points that need a little bit more explanation.
78
77
79
78
In order to use the camera module, just require it, as shown in Example 1:
80
79
81
-
>Example 1: Require camera module in the application
80
+
####Example 1: Require camera module in the application
82
81
83
82
```JavaScript
84
83
// JavaScript
@@ -92,7 +91,7 @@ import * as camera from "@nativescript/camera";
92
91
93
92
Then you are ready to use it:
94
93
95
-
>Example 2: How to take a picture and to receive image asset
94
+
####Example 2: How to take a picture and to receive image asset
96
95
97
96
```JavaScript
98
97
// JavaScript
@@ -140,7 +139,7 @@ Setting the `keepAspectRatio` property could result in a different than requeste
140
139
141
140
**Example 3** shows how to use the options parameter:
142
141
143
-
>Example 3: How to setup `width`, `height`, `keepAspectRatio` and `saveToGallery` properties for the camera module
142
+
####Example 3: How to setup `width`, `height`, `keepAspectRatio` and `saveToGallery` properties for the camera module
144
143
145
144
```JavaScript
146
145
// JavaScript
@@ -218,4 +217,4 @@ The method isAvaiable will return true if the camera hardware is ready to use or
218
217
const isAvailable = camera.isAvailable();
219
218
```
220
219
221
-
> Note: This method will return false when used in iOS simulator (as the simulator does not have camera hardware)
220
+
> **Note**: This method will return false when used in iOS simulator (as the simulator does not have camera hardware)
Copy file name to clipboardExpand all lines: packages/detox/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ Here is a full example of a Detox configuration:
116
116
}
117
117
```
118
118
119
-
**NOTE:** A default NativeScript Android project uses 17 as the minimum SDK, but Detox requires >=18. Remove or modify the `minSdkVersion` in your `App_Resources/Android/app.gradle`.
119
+
> **Note:** A default NativeScript Android project uses 17 as the minimum SDK, but Detox requires >=18. Remove or modify the `minSdkVersion` in your `App_Resources/Android/app.gradle`.
Copy file name to clipboardExpand all lines: packages/email/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
You can use this plugin to compose an e-mail, have the user edit the draft manually, and send it.
15
15
16
-
> Note that this plugin depends on the default mail app. If you want a fallback to a third party client app like Gmail or Outlook, then check for availability, and if not available use a solution like [the Social Share plugin](https://github.com/tjvantoll/nativescript-social-share).
16
+
> **Note:** This plugin depends on the default mail app. If you want a fallback to a third party client app like Gmail or Outlook, then check for availability, and if not available use a solution like [the Social Share plugin](https://github.com/tjvantoll/nativescript-social-share).
Copy file name to clipboardExpand all lines: packages/fingerprint-auth/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ If you want to override the default texts of this popover screen, then drop a fi
91
91
92
92
**Use plugin version < 7.0.0 to be able to use this feature with NativeScript < 5.4.0**
93
93
94
-
> Skip this section if you're on NativeScript 5.4.0 or newer because it's all handled automatically!
94
+
> **Note**: Skip this section if you're on NativeScript 5.4.0 or newer because it's all handled automatically!
95
95
96
96
To be able to use this screen, a change to `App_Resources/Android/AndroidManifest.xml` is required as our NativeScript activity needs to extend AppCompatActivity (note that in the future this may become the default for NativeScript apps).
| iosAllowsBackgroundLocationUpdates | false | If enabled, UIBackgroundModes key in info.plist is required (check the hint below). Allow the application to receive location updates in background (ignored on Android). Read more in [Apple document](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates?language=objc)|
72
72
| iosPausesLocationUpdatesAutomatically | true | Allow deactivation of the automatic pause of location updates (ignored on Android). Read more in [Apple document](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical?language=objc)|
73
73
74
-
> If iosAllowsBackgroundLocationUpdates is set to true, the following code is required in the info.plist file:
75
-
>
76
-
> ```
77
-
> <key>UIBackgroundModes</key>
78
-
> <array>
79
-
> <string>location</string>
80
-
> </array>
81
-
> ```
74
+
> **Note**: If `iosAllowsBackgroundLocationUpdates` is set to true, the following code is required in the `info.plist` file:
const localeOverriddenSuccessfully =overrideLocale('en-GB'); // or "nl-NL", etc (or even just the part before the hyphen)
201
201
```
202
202
203
-
## On Android you can programatically override this language since plugin version 4.2.1 by doing this:
203
+
####On Android you can programatically override this language since plugin version 4.2.1 by doing this:
204
204
205
-
In your app.ts / main.ts / app.js
205
+
In your `app.ts` / `main.ts` / `app.js`
206
206
207
207
```ts
208
208
import { Application } from'@nativescript/core';
@@ -244,8 +244,7 @@ alert({
244
244
});
245
245
```
246
246
247
-
> **Important:** In case you are using [Android app bundle](https://docs.nativescript.org/tooling/publishing/android-app-bundle) to release your android app, add this to
248
-
> App_Resources/Android/app.gradle to make sure all lanugages are bundled in the split apks
247
+
> **Important:** In case you are using [Android app bundle](https://docs.nativescript.org/tooling/publishing/android-app-bundle) to release your android app, add this to `App_Resources/Android/app.gradle` to make sure all lanugages are bundled in the split apks
249
248
250
249
```groovy
251
250
android {
@@ -268,8 +267,7 @@ import { Device } from '@nativescript/core';
268
267
console.log("user's language is", Device.language.split('-')[0]);
269
268
```
270
269
271
-
> **Tip:** overrideLocale method stores the language in a special key in app-settings,
272
-
> you can access it like this,
270
+
> **Tip:** overrideLocale method stores the language in a special key in app-settings, you can access it like this
0 commit comments