@sumaris-net/ngx-components 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +3 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +3 -3
- package/esm2020/src/app/core/home/home.mjs +3 -3
- package/esm2020/src/app/core/settings/settings.page.mjs +2 -2
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +2 -2
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +6 -6
- package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +35 -11
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +3 -6
- package/esm2020/src/app/shared/shared.module.mjs +3 -3
- package/esm2020/src/app/social/job/progression/job-progression.list.mjs +2 -2
- package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +58 -38
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +58 -37
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/clovelced-plugin-audiomanagement/README.md +66 -0
- package/plugins/cordova-plugin-camera/README.md +703 -0
- package/plugins/cordova-plugin-device/README.md +309 -0
- package/plugins/cordova-plugin-file/README.md +848 -0
- package/plugins/cordova-plugin-file-transfer/README.md +598 -0
- package/plugins/cordova-plugin-file-transfer/doc/de/README.md +311 -0
- package/plugins/cordova-plugin-file-transfer/doc/es/README.md +311 -0
- package/plugins/cordova-plugin-file-transfer/doc/fr/README.md +270 -0
- package/plugins/cordova-plugin-file-transfer/doc/it/README.md +311 -0
- package/plugins/cordova-plugin-file-transfer/doc/ja/README.md +311 -0
- package/plugins/cordova-plugin-file-transfer/doc/ko/README.md +311 -0
- package/plugins/cordova-plugin-file-transfer/doc/pl/README.md +311 -0
- package/plugins/cordova-plugin-file-transfer/doc/zh/README.md +311 -0
- package/plugins/cordova-plugin-ionic-keyboard/README.md +220 -0
- package/plugins/cordova-plugin-ionic-webview/README.md +181 -0
- package/plugins/cordova-plugin-media-capture/README.md +626 -0
- package/plugins/cordova-plugin-splashscreen/README.md +387 -0
- package/plugins/cordova-plugin-statusbar/README.md +341 -0
- package/plugins/cordova-plugin-telerik-imagepicker/README.md +155 -0
- package/plugins/cordova-plugin-whitelist/README.md +185 -0
- package/plugins/cordova-sqlite-storage/README.md +1848 -0
- package/plugins/integrator-cordova-plugin-downloader/README.md +49 -0
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +2 -2
- package/src/app/core/form/entity/entity-editor.class.d.ts +2 -2
- package/src/app/shared/material/swipe/testing/swipe.test.d.ts +3 -3
- package/src/app/shared/pipes/date-format.pipe.d.ts +22 -11
- package/src/app/shared/pipes/property.pipes.d.ts +4 -6
- package/src/assets/i18n/en-US.json +20 -5
- package/src/assets/i18n/en.json +18 -4
- package/src/assets/i18n/fr.json +13 -5
package/package.json
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# cordova-plugin-audiomanagement
|
|
2
|
+
A plugin to manage audio mode and volume
|
|
3
|
+
|
|
4
|
+
## Installation
|
|
5
|
+
`cordova plugin add clovelced-plugin-audiomanagement`
|
|
6
|
+
|
|
7
|
+
## Supported Platforms
|
|
8
|
+
|
|
9
|
+
- Android
|
|
10
|
+
|
|
11
|
+
## AUDIO MODE
|
|
12
|
+
- Define the audio mode
|
|
13
|
+
```javascript
|
|
14
|
+
AudioManagement.setAudioMode(audioMode, onSuccess, onError);
|
|
15
|
+
|
|
16
|
+
// Example
|
|
17
|
+
AudioManagement.setAudioMode(AudioManagement.AudioMode.NORMAL, function(){}, function(){});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- Get the current audio mode
|
|
21
|
+
```javascript
|
|
22
|
+
AudioManagement.getAudioMode(onSuccess, onError);
|
|
23
|
+
|
|
24
|
+
AudioManagement.getAudioMode(function(result){
|
|
25
|
+
console.log('Mode' + result.audioMode); // will show '2'
|
|
26
|
+
console.log('Label' + result.label); // will show 'Normal'
|
|
27
|
+
}, onError);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### The audio mode
|
|
31
|
+
- `AudioManagement.AudioMode.SILENT` = 0
|
|
32
|
+
- `AudioManagement.AudioMode.VIBRATE` = 1
|
|
33
|
+
- `AudioManagement.AudioMode.NORMAL` = 2
|
|
34
|
+
|
|
35
|
+
## VOLUME
|
|
36
|
+
- Set the volume
|
|
37
|
+
```javascript
|
|
38
|
+
AudioManagement.setVolume(type, volume, onSuccess, onError);
|
|
39
|
+
|
|
40
|
+
// Example
|
|
41
|
+
AudioManagement.setVolume(AudioManagement.VolumeType.RING, 10, function(){}, function(){});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
- Get the volume of a stream
|
|
45
|
+
```javascript
|
|
46
|
+
AudioManagement.getVolume(type, onSuccess, onError);
|
|
47
|
+
|
|
48
|
+
AudioManagement.getVolume(AudioManagement.VolumeType.RING, function(result){
|
|
49
|
+
console.log('Volume' + result.volume); // will show '12'
|
|
50
|
+
}, onError);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- Get the max volume of a stream
|
|
54
|
+
```javascript
|
|
55
|
+
AudioManagement.getMaxVolume(type, onSuccess, onError);
|
|
56
|
+
|
|
57
|
+
AudioManagement.getMaxVolume(AudioManagement.VolumeType.RING, function(result){
|
|
58
|
+
console.log('Max volume' + result.maxVolume); // will show '15'
|
|
59
|
+
}, onError);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### The volume type
|
|
63
|
+
- `AudioManagement.VolumeType.RING` = 0
|
|
64
|
+
- `AudioManagement.VolumeType.MUSIC` = 1
|
|
65
|
+
- `AudioManagement.VolumeType.NOTIFICATION` = 2
|
|
66
|
+
- `AudioManagement.VolumeType.SYSTEM` = 3
|