语言

PccService.OnBind(Intent) 方法

定义

返回服务的信道。

[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "", ApiSince=37)]
public override sealed Android.OS.IBinder OnBind(Android.Content.Intent? intent);
[<Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "", ApiSince=37)>]
override this.OnBind : Android.Content.Intent -> Android.OS.IBinder

参数

intent
Intent

用于绑定到此服务的意向。

返回

一个 IBinder,客户端可以通过该 IBinder 调用回服务。 如果系统代理绑定器未在 PCC UID 中执行,或者不是受信任的组件,系统代理绑定器将返回到调用方。

特性

注解

返回服务的信道。

Android 参考。android.app.privatecompute.PccService.onBind

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于