Table of Contents

TTMSMCPJSONHelper.AppendIcon Method

Appends one icon descriptor to a JSON array of icons and returns the array again as a string. An empty or non-array input starts a fresh array, so the function can be called repeatedly to accumulate icons.

API unit family: TMS.MCP.Helpers Declaring type: TTMSMCPJSONHelper

Syntax

class function AppendIcon(const AExistingIconsJSON, ASrc, AMimeType, ASizes: string): string; static;

Parameters

Name Description
AExistingIconsJSON The icon array serialized as JSON, or an empty string to start a new array.
ASrc Location of the icon image, for example an HTTP URL or a data URI.
AMimeType Media type of the image, for example image/png. Omitted from the descriptor when empty.
ASizes Space-separated size specification, for example 48x48. Omitted from the descriptor when empty.

Returns

The icon array, including the new entry, serialized as JSON.