Android device list
A JSON list created from Google Play Supported devices CVS.
Source: https://support.google.com/googleplay/android-developer/answer/6154891?hl=en
Install
$ npm install hy-android-device-list
Usage
.deviceList()
: Array
Returns the full device list
.brandList()
: Array
Returns the full brand list
.getDevicesByBrand(brand, [options])
: Array
Returns a device list with matching retail brand.
options
is an Object
.
caseInsensitive
: boolean (default false) - do not care of case typecontains
: boolean (default false) - return partial (substring) results too
.getDevicesByName(name, [options])
: Array
Returns a device list with matching marketing name.
.getDevicesByDeviceId(deviceId, [options])
: Array
Returns a device list with matching build.os.DEVICE.
.getDevicesByModel(model, [options])
: Array
Returns a device list with matching build.os.MODEL.
Example
var androidDevices = ; var devices = androidDevices;var brands = androidDevices; console;// 11174 console;// 485 console;// 'LGE' var LGDevices; LGDevices = androidDevices;console;// 0 LGDevices = androidDevices;console;// 0 LGDevices = androidDevices;console;// 902 LGDevices = androidDevices;console;// 901 LGDevices = androidDevices;console;// 896 console;// { brand: 'LGE', name: 'LG G4', device: 'p1', model: 'LG-H815' }
License
hy-android-device-list is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.