클라이언트 세션에서 에이전트의 현재 상태 텍스트를 반환합니다.
Syntax
Microsoft.CIFramework.getPresence();
매개 변수
없음.
반환 값
현재 에이전트의 현재 상태 텍스트를 String으로 사용하여 Promise를 사용합니다.
Example
function getPresence() {
return new Promise((resolve, reject) => {
Microsoft.CIFramework.getPresence().then(
function (result) {
if (result == "FAILED")
//your code handling for failure
else {
//your code for success
}
return result;
},
function (error) {
// code handling for promise failure
});
});