nativescript-dna-deviceinfo
Advanced tools
Comparing version 1.4.0 to 2.0.0
@@ -22,5 +22,5 @@ import { Carrier, StorageVolume } from './deviceinfo.interface'; | ||
static batteryLevel(): number; | ||
static cellularServiceProvider(): Carrier[]; | ||
static cellularServiceProviders(): Carrier[]; | ||
static externalStoragePaths(): string[]; | ||
static storageVolumeInfo(): StorageVolume[]; | ||
static storageVolumes(): StorageVolume[]; | ||
static isTablet(): boolean; | ||
@@ -27,0 +27,0 @@ static is24Hour(): boolean; |
@@ -144,3 +144,3 @@ "use strict"; | ||
}; | ||
DeviceInfo.cellularServiceProvider = function () { | ||
DeviceInfo.cellularServiceProviders = function () { | ||
var carriers = []; | ||
@@ -206,3 +206,3 @@ var sm = DeviceInfo_1.subscriptionManager(); | ||
}; | ||
DeviceInfo.storageVolumeInfo = function () { | ||
DeviceInfo.storageVolumes = function () { | ||
var storageVolumesCollection = []; | ||
@@ -209,0 +209,0 @@ var ctx = application_1.android.context; |
@@ -43,5 +43,5 @@ import { RadioAccessTechnology, WCTGeneration } from "./index.d"; | ||
batteryLevel(): number; | ||
cellularServiceProvider(): Carrier[]; | ||
cellularServiceProviders(): Carrier[]; | ||
externalStoragePaths(): string[]; | ||
storageVolumeInfo(): StorageVolume[]; | ||
storageVolumes(): StorageVolume[]; | ||
isTablet(): boolean; | ||
@@ -48,0 +48,0 @@ is24Hour(): boolean; |
@@ -24,5 +24,5 @@ import { Carrier, StorageVolume } from './deviceinfo.interface'; | ||
static batteryLevel(): number; | ||
static cellularServiceProvider(): Carrier[]; | ||
static cellularServiceProviders(): Carrier[]; | ||
static externalStoragePaths(): string[]; | ||
static storageVolumeInfo(): StorageVolume[]; | ||
static storageVolumes(): StorageVolume[]; | ||
static isTablet(): boolean; | ||
@@ -29,0 +29,0 @@ static is24Hour(): boolean; |
@@ -125,3 +125,3 @@ "use strict"; | ||
}; | ||
DeviceInfo.cellularServiceProvider = function () { | ||
DeviceInfo.cellularServiceProviders = function () { | ||
var carriers = []; | ||
@@ -162,3 +162,3 @@ var telephonyInfo = CTTelephonyNetworkInfo.alloc().init(); | ||
}; | ||
DeviceInfo.storageVolumeInfo = function () { | ||
DeviceInfo.storageVolumes = function () { | ||
return []; | ||
@@ -165,0 +165,0 @@ }; |
@@ -50,5 +50,5 @@ import { Carrier, StorageVolume } from './deviceinfo.interface'; | ||
static batteryLevel(): number; | ||
static cellularServiceProvider(): Carrier[]; | ||
static cellularServiceProviders(): Carrier[]; | ||
static externalStoragePaths(): string[]; | ||
static storageVolumeInfo(): StorageVolume[]; | ||
static storageVolumes(): StorageVolume[]; | ||
static isTablet(): boolean; | ||
@@ -55,0 +55,0 @@ static is24Hour(): boolean; |
{ | ||
"name": "nativescript-dna-deviceinfo", | ||
"version": "1.4.0", | ||
"version": "2.0.0", | ||
"description": "NativeScript plugin to acquire device information.", | ||
@@ -5,0 +5,0 @@ "main": "deviceinfo", |
@@ -24,4 +24,4 @@ | ||
- 1.4.0: Added storageVolumeInfo API. | ||
- 2.0.0: Changed APIs name for storageVolumes & cellularServiceProviders. | ||
## Installation | ||
@@ -217,3 +217,3 @@ | ||
### - cellularServiceProvider | ||
### - cellularServiceProviders | ||
@@ -223,3 +223,3 @@ Returns a list of GSM network providers, *Carrier*, of a device is equipped with. | ||
```javascript | ||
let carriers = DeviceInfo.cellularServiceProvider(); | ||
let carriers = DeviceInfo.cellularServiceProviders(); | ||
console.log(carriers); | ||
@@ -258,3 +258,3 @@ ``` | ||
### - storageVolumeInfo | ||
### - storageVolumes | ||
@@ -264,3 +264,3 @@ Returns a list of *StorageVolume*. An empty list means that no mountable volumes found. | ||
```javascript | ||
let storageVolumes = DeviceInfo.storageVolumeInfo(); | ||
let storageVolumes = DeviceInfo.storageVolumes(); | ||
console.log(storageVolumes); | ||
@@ -308,2 +308,3 @@ ``` | ||
console.log("Storage paths: ", DeviceInfo.externalStoragePaths()); | ||
console.log("Storage Volume Info: ", DeviceInfo.storageVolumes()); | ||
console.log("Is tablet: ", DeviceInfo.isTablet()); | ||
@@ -310,0 +311,0 @@ console.log("Is 24 hour: ", DeviceInfo.is24Hour()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
352492
327