Click or drag to resize

DesktopUtils Class

Static helper class for getting/setting values from a JObject.
Inheritance Hierarchy
SystemObject
  Openfin.DesktopDesktopUtils

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.5.1
Syntax
C#
public static class DesktopUtils

The DesktopUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic membergetJSONT
Generic function to retrieve a value identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONArray
Returns a JArray identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve the JArray from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONBool
Returns a bool identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONDouble
Returns a double identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONInt
Returns an int identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONLong
Returns a long identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONObject
Returns a JObject identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetJSONString
Returns a string identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic membergetObject
Returns an Object identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.
Public methodStatic memberupdateJSONValue
Sets a key/value pair for the passed JObject.
Top
See Also