| Package | yy |
| Interface | public interface IReceptionChannel extends flash.events.IEventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
getReceptionChannel():Object
获取接待频道。
| IReceptionChannel | ||
setReceptionChannel(cid:uint):Object
设置接待频道。每次调用需要间隔5秒
| IReceptionChannel | ||
unSetReceptionChannel():Object
反设置接待频道,移除接待频道。每次调用需要间隔5秒。
| IReceptionChannel | ||
| getReceptionChannel | () | method |
public function getReceptionChannel():Object获取接待频道。
ReturnsObject — 返回接待频道信息,具体属性如下。
ret: int类型 返回码 0=成功,非0值失败,具体请参考错误代码。 cid: Number类型 接待频道的长位Id。如果为0,表示当前没有设置接待频道 |
使用示例:
var result:Object = YY.instance.channel.receptionChannel.getReceptionChannel();
if(result.ret==0)
{
if(result.cid==0)
{
trace("尚未设置接待频道");
}
else
{
trace("接待频道Id:" + result.cid);
}
}
成功的返回值示例:{ ret:0,cid:88995544}
失败的返回值示例:{ ret:984832}
| setReceptionChannel | () | method |
public function setReceptionChannel(cid:uint):Object设置接待频道。每次调用需要间隔5秒
Parameters
cid:uint — 频道的长位id。
|
Object — 返回调用是否成功,是一个Object对象,具体属性如下。
ret: int类型 返回码 0=成功,非0值失败,具体请参考错误代码。 |
| unSetReceptionChannel | () | method |
public function unSetReceptionChannel():Object反设置接待频道,移除接待频道。每次调用需要间隔5秒。
ReturnsObject — 返回调用是否成功,是一个Object对象,具体属性如下。
ret: int类型 返回码 0=成功,非0值失败,具体请参考错误代码。 |