-
Android官方api文档完整版+androidstudio快捷键下载
资源介绍
Android官方API文档完整版,
内容参考:
onBind
public final IBinder onBind(Intent intent)从类 Service 复制的描述
Return the communication channel to the service. May return null if clients can not bind to the service. The returned IBinder is usually for a complex interface that has been described using aidl.
Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about this can be found in Application Fundamentals: Processes and Threads.
指定者:
类 Service 中的 onBind
参数:
intent - The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.
返回:
Return an IBinder through which clients can call on to the service.