Windows Dev Center

isPhone property

Applies to Windows Phone only

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 Insider Preview

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

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

End of client support

None supported

End of phone support

Windows Phone 8.1

End of server support

None supported

Namespace

WinJS.Utilities

Library

Winjs.js

 

 

Show:
© 2015 Microsoft