返回客户端会话中代理的状态文本。
Syntax
Microsoft.CIFramework.getPresence();
参数
没有。
返回值
Promise 使用当前代理的在线状态文本,作为 String。
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
});
});