Class NSPreviewsAgent
Gets preview strings from a hint.
Syntax
Examples
NSPreviewsAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSPreviewsAgent()
Gets preview strings from a hint.
Declaration
NSPreviewsAgent
Examples
NSPreviewsAgent agent;
agent.callMethod(arg1, arg2);
Methods
GetPreview(String)
Parses a Preview hint and return a Preview.The returned Preview string may contain resource string identifiers (in square brackets), to be processed by the resource manager.
The Preview hint is either a literal text, representing itself or a set of key/value pairs enclosed in curly braces. Each key is separated from its value by an equals sign, and each pair from the next by an ampersand, according to usual conventions.Declaration
String GetPreview(String previewHint)
Parameters
Type | Name | Description |
---|---|---|
String | previewHint |
Returns
Type | Description |
---|---|
String |
Remarks
A typical Preview hint could be {contact_id=123}
or {appointment_id=222&mode=simple}
Examples
NSPreviewsAgent agent;
agent.callMethod(arg1, arg2);