setItems method
Setter method that sets the "Item List" to be subscribed to through Lightstreamer Server.
Any call to this method will override any "Item List" or "Item Group" previously specified.
Lifecycle This method can only be called while the Subscription instance is in its "inactive" state.
Throws IllegalArgumentException if any of the item names in the "Item List" contains a space or is a number or is empty/null.
Throws IllegalStateException if the Subscription is currently "active".
items
an array of items to be subscribed to through the server.
Implementation
void setItems(List<String>? items) {
_items = items?.toList();
}