语言

Context.UpdateBindingParams.Builder 构造函数

定义

重载

名称 说明
Context.UpdateBindingParams.Builder(IServiceConnection)

为连接取消绑定请求创建新的生成器。

Context.UpdateBindingParams.Builder(IServiceConnection, Context+BindServiceFlags)

使用指定的标志为连接重新绑定请求创建新的生成器,该标志将完全替换现有标志集。

Context.UpdateBindingParams.Builder(IServiceConnection)

为连接取消绑定请求创建新的生成器。

[Android.Runtime.Register(".ctor", "(Landroid/content/ServiceConnection;)V", "", ApiSince=37)]
public Builder(Android.Content.IServiceConnection connection);
[<Android.Runtime.Register(".ctor", "(Landroid/content/ServiceConnection;)V", "", ApiSince=37)>]
new Android.Content.Context.UpdateBindingParams.Builder : Android.Content.IServiceConnection -> Android.Content.Context.UpdateBindingParams.Builder

参数

connection
IServiceConnection

此更新适用于的 ServiceConnection。 此值不能为 null。

特性

注解

为连接取消绑定请求创建新的生成器。

Android 参考。android.content.Context.UpdateBindingParams.Builder.Builder

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

适用于

Context.UpdateBindingParams.Builder(IServiceConnection, Context+BindServiceFlags)

使用指定的标志为连接重新绑定请求创建新的生成器,该标志将完全替换现有标志集。

[Android.Runtime.Register(".ctor", "(Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;)V", "", ApiSince=37)]
public Builder(Android.Content.IServiceConnection connection, Android.Content.Context.BindServiceFlags flags);
[<Android.Runtime.Register(".ctor", "(Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;)V", "", ApiSince=37)>]
new Android.Content.Context.UpdateBindingParams.Builder : Android.Content.IServiceConnection * Android.Content.Context.BindServiceFlags -> Android.Content.Context.UpdateBindingParams.Builder

参数

connection
IServiceConnection

此更新适用于的 ServiceConnection。 此值不能为 null。

flags
Context.BindServiceFlags

重新绑定请求的 BindServiceFlags。 此值不能为 null。

特性

注解

使用指定的标志为连接重新绑定请求创建新的生成器,该标志将完全替换现有标志集。 只能添加或删除从 Context.getUpdateableFlags 返回的标志。 进行更新调用时,任何无效的添加或删除都将触发 IllegalArgumentException。

Android 参考。android.content.Context.UpdateBindingParams.Builder.Builder

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

适用于