Show NKGetDeviceType

NKGetDeviceType

Description

NKGetDeviceType returns the device type as a string. Return values can be "iPhone", "iPad" or "iPod Touch".

Usage

NKGetDeviceType()

Example

<a href="#" onClick="showNKGetDeviceType();">Show NKGetDeviceType</a>

When the link is clicked, the "showNKGetDeviceType" function is called & the type of device is displayed:

function showNKGetDeviceType()
{
NKAlert("Device Type", NKGetDeviceType());
}