Dazzle Custom RSS Elements/Attributes

Attributes (on enclosure element)

Elements (within item element)

Custom Info.plist Keys

Object: Dazzle

Options:

Methods:

onShow

Should be called by widget.onshow handler.

Arguments: None

onHide

Should be called by widget.onhide handler.

Arguments: None

getLatestVersion

Returns an object containing information about the latest version of the widget available.

{
	version: "1.1",
	shortVersionString: "1.1",
	minimumSystemVersion: "10.5.7",
	url: "http://blah.com/myWidget.wdgt.zip",
	releaseNotesURL: "http://blah.com/myWidgetReleaseNotes.html"
}

Arguments: None

getCurrentVersion

Returns an object containing information about the current version of the widget.

{
	version: "1.0",
	shortVersionString: "1.0"
}

Arguments: None

getWidgetName

Returns a string containing the widget name (CFBundleName).

Arguments: None

getWidgetDisplayName

Returns a string containing the widget display name (CFBundleDisplayName).

Arguments: None

getSystemVersion

Returns a string containing the version of the user's operating system (e.g. "10.5.7").

Arguments: None

getIsUpToDate

Returns a boolean indicating whether the current version of the widget is the latest version available.

Arguments: None

getAppcastURL

Returns the appcast URL.

Arguments: None

setAppcastURL

Sets the URL of the appcast

Arguments:

  1. appcastURL (String)

getCheckInterval

Returns the check interval (a number).

Arguments: None

setCheckInterval

Sets the interval/frequency for automatic checks. This method can either be passed a number in milliseconds (must be greater than zero), or a preset string such as "Hourly" that the method will convert into milliseconds.

The following preset strings are available: "Half-Hourly", "Hourly", "Daily", and "Weekly".

Arguments:

  1. checkInterval (Number/String)

Examples:

// Sets the check interval to 3,600,000 milliseconds (1000 * 60 * 60)
dazzle.setCheckInterval("Hourly");

// Sets the check interval to five seconds (not recommended, except for testing!)
dazzle.setCheckInterval(5000);
						

getShouldAutomaticallyCheckForUpdates

Returns a boolean indicating whether automatic checks are enabled.

Arguments: None

setShouldAutomaticallyCheckForUpdates

Tells Dazzle whether it should automatically check for updates.

Arguments:

  1. shouldCheck (boolean)

getShouldDisplayAlertBox

Returns a boolean indicating whether the alert box is enabled.

Arguments: None

setShouldDisplayAlertBox

Tells Dazzle whether or not it should display the alert box after checking for updates and finding that a new update is available.

Arguments:

  1. shouldDisplayAlertBox (boolean)

checkForUpdatesInBackground

Checks for updates and displays an alert box to the user if a newer version is available.

Arguments: None

Example:

// Checks for Updates
dazzle.checkForUpdatesInBackground();
						

checkForUpdateInformation

Checks for updates but doesn't display an alert box if a newer version is available.

Arguments:

  1. options (object; optional) - Object of any of the options listed below.

Options:

  • onStart (function) - Specifies a function to call when starting to check for updates.
  • onComplete (function) - Specifies a function to call when finished checking for updates.

Examples:

// Checks for Updates
dazzle.checkForUpdateInformation();

// Using options
dazzle.checkForUpdateInformation({ onComplete: foo });