@notification::setContent

Provides static content for this notification for any Device Type.

Setting static content will automatically force the notification to use static content delivery. This method no longer functions after the performNotification method has been called.

If the content for a specific Device Type is not set, the generic content will be used. The generic content for a notification must be set prior to the performNotification being called, and the generic content for a notification must be set prior to any Device-specific content..

Syntax:

@notification::setContent(@content content[, String deviceType])

Parameters:

(string) deviceType: (Optional); the type of Device for the which the content is intended. Valid values are:

Returns:

None

Example:

This script illustrates using this method to set the static content for a notification:

@notification::setContent(@content)

@notification::setContent(@emailContent, "email")

 

The following script execution would FAIL because the Device-specific content is being set prior to generic content:

@notification::setContent(@emailContent, "email")

@notification::setContent(@content)