asBinder

源码中的实现为:

public interface IInterface
{
/**
* Retrieve the Binder object associated with this interface.
* You must use this instead of a plain cast, so that proxy objects
* can return the correct result.
*/
public IBinder asBinder();
}

 

即:

 检索与此接口关联的绑定器对象。必须使用它而不是纯强制转换,以便代理对象可以返回正确的结果。
posted @ 2019-08-06 18:51  tingtasia  阅读(309)  评论(0)    收藏  举报