This interface defines a model that represents a container. You need to implement it to process
the updateModel
callback in caplin.streamlink.ContainerEvents.
The methods on this interface will be called in the correct order to ensure that your representation is correct.
Attributes | Name and Description |
---|---|
|
caplin.streamlink.ContainerModel()
|
Attributes | Name and Description |
---|---|
|
void
clear()
Called to indicate that you should clear your model of the container. |
|
void
insert(int index, caplin.streamlink.ContainerElement element)
Called to indicate that you should insert the ContainerElement at the specified position. |
|
void
move(int from, int to, caplin.streamlink.ContainerElement element)
Called to indicate that you should move the specified ContainerElement. |
|
void
remove(int index, caplin.streamlink.ContainerElement element)
Called to indicate that you should remove the ContainerElement from the specified position. |
►
caplin.streamlink.ContainerModel()
►
void
clear()
Called to indicate that you should clear your model of the container.
►
void
insert(int index, caplin.streamlink.ContainerElement element)
Called to indicate that you should insert the ContainerElement at the specified position.
int | index | The index at which to insert the ContainerElement. |
caplin.streamlink.ContainerElement | element | The ContainerElement to insert. |
►
void
move(int from, int to, caplin.streamlink.ContainerElement element)
Called to indicate that you should move the specified ContainerElement.
int | from | The index at which the ContainerElement is currently located. |
int | to | The index to which the ContainerElement should be moved to. |
caplin.streamlink.ContainerElement | element | The ContainerElement to move. |
►
void
remove(int index, caplin.streamlink.ContainerElement element)
Called to indicate that you should remove the ContainerElement from the specified position.
int | index | The index at which to remove the ContainerElement. |
caplin.streamlink.ContainerElement | element | The ContainerElement to remove. |