Viewer.getInput() method

Get the input method by its id.

Signature:

getInput(id: number): any;

Parameters

ParameterDescription
idThe id of input which is the return value when adding input to the viewer.

Returns:

any

The input method object. If the id is invalid, it returns null.