Device.getDeviceModel()

Overview

Gets the device's model.

Added in version 2.0.0

Format

var model = Device.getDeviceModel();

Parameter Description Type Required Notes
model A string containing the device's model. String Return value May return undefined or null if unable to determine value.

Example

Copy
/* Display a toast message of the device's model.
*/
var model = Device.getDeviceModel();
if(model) {
    View.toast('Model: ' + model, true);
}