getValue method

String? getValue(
  1. StringOrInt fieldNameOrPosition
)

Returns the current value for the specified field.

  • fieldNameOrPosition The field name as specified within the "Field List" or the 1-based position of the field within the "Field List" or "Field Schema".

Throws IllegalArgumentException if the specified field is not part of the Subscription.

Returns The value of the specified field; it can be null in the following cases:

  • a null value has been received from the Server, as null is a possible value for a field;
  • no value has been received for the field yet;
  • the item is subscribed to with the COMMAND mode and a DELETE command is received (only the fields used to carry key and command information are valued).
- See [Subscription.setFields]

Implementation

external String? getValue(StringOrInt fieldNameOrPosition);