isPhone property

Indicates whether the app is running on Windows Phone.

Syntax

var boolRef = WinJS.Utilities.isPhone;

Property value

Type: Boolean

Note  isPhone property is no longer available for use as of Windows 10

 

A boolean that indicates whether the app is running on Windows Phone

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.Utilities