Yes they are removed, instead there is getUAParser() method.
You can use documentViewer.getUAParser().getDevice() to get result like:
{type: 'mobile', model: 'SM-G981B', vendor: 'Samsung'}
or documentViewer.getUAParser().getBrowser() to get result like:
{name: 'Mobile Chrome', version: '116.0.0.0', major: '116'}
or documentViewer.getUAParser().getResult() to get full result like:
{
"ua": "Mozilla/5.0 (Linux; Android 13; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36",
"browser": {
"name": "Mobile Chrome",
"version": "116.0.0.0",
"major": "116"
},
"cpu": {},
"device": {
"type": "mobile",
"model": "SM-G981B",
"vendor": "Samsung"
},
"engine": {
"name": "Blink",
"version": "116.0.0.0"
},
"os": {
"name": "Android",
"version": "13"
}
}