long closeViewWithIndex(int index)
This methods closes the view having the given index.
This method returns 0 upon success, and returns error codes under the following conditions:
- The index is out of range, i.e. there is no view with the given index.
- The SDM is operation in SDI mode.