SDK Documentation & Reference.Documentation Pdf



NKApplication


Overview

Used to modify application global behavior and appearance. Works as singleton, you can create instance of this class in any page.

setStatusBarStyle(style)

sets the color and style of topmost status bar, style can be one of three available values: "Default", "Black" or "BlackTranslucent" (not case sensitive).

setIdleTimerDisabled(isDisabled)

Controls application's idle timer. You should set idle timer disabled only if it's really necessary and be sure to enable idle timer when the need no longer exists. By default idle timer enabled.

vibrate()

Makes iPhone device to vibrate, does nothing on iPad or iPod devices

setBadgeCount(count)

sets number of application badges (shown on application icon in red circle)

iPhoneOSVersion()

retrieves string which represents iPhone OS version (i.e. "3.0")

Example:

var application = new NKApplication();
application.setStatusBarStyle("black");