fun addMoreComponents(cnt: Container, components: Array<Component?>?, areThereMore: Boolean) { val ia: InfiniteScrollAdapter = cnt.getClientProperty("cn1\$infinite") as InfiniteScrollAdapter ia.addMoreComponents(components, areThereMore) }
Invoke this method to add additional components to the container , if you use addComponent/removeComponent you will get undefined behavior . This is a convenience method saving the need to keep the InfiniteScrollAdapter as a variable