语言

TrafficDescriptor.Builder.SetConnectionCapability(Int32) 方法

定义

设置流量的连接功能。

[Android.Runtime.Register("setConnectionCapability", "(I)Landroid/telephony/data/TrafficDescriptor$Builder;", "", ApiSince=37)]
public Android.Telephony.Data.TrafficDescriptor.Builder SetConnectionCapability(int connectionCapability);
[<Android.Runtime.Register("setConnectionCapability", "(I)Landroid/telephony/data/TrafficDescriptor$Builder;", "", ApiSince=37)>]
member this.SetConnectionCapability : int -> Android.Telephony.Data.TrafficDescriptor.Builder

参数

connectionCapability
Int32

要设置的连接功能常量。 值为下列值之一:TrafficDescriptor.CONNECTION_CAPABILITY_UNKNOWN;TrafficDescriptor.CONNECTION_CAPABILITY_IMS;TrafficDescriptor.CONNECTION_CAPABILITY_MMS;TrafficDescriptor.CONNECTION_CAPABILITY_SUPL;TrafficDescriptor.CONNECTION_CAPABILITY_INTERNET;TrafficDescriptor.CONNECTION_CAPABILITY_LCS_USER_PLANE_POSITIONING;TrafficDescriptor.CONNECTION_CAPABILITY_IOT_DELAY_TOLERANT;TrafficDescriptor.CONNECTION_CAPABILITY_IOT_NON_DELAY_TOLERANT;TrafficDescriptor.CONNECTION_CAPABILITY_DOWNLINK_STREAMING;TrafficDescriptor.CONNECTION_CAPABILITY_UPLINK_STREAMING;TrafficDescriptor.CONNECTION_CAPABILITY_VEHICULAR_COMMUNICATIONS;TrafficDescriptor.CONNECTION_CAPABILITY_REAL_TIME_INTERACTIVE;TrafficDescriptor.CONNECTION_CAPABILITY_UNIFIED_COMMUNICATIONS;TrafficDescriptor.CONNECTION_CAPABILITY_BACKGROUND;TrafficDescriptor.CONNECTION_CAPABILITY_MISSION_CRITICAL_COMMUNICATIONS;TrafficDescriptor.CONNECTION_CAPABILITY_TIME_CRITICAL_COMMUNICATIONS;TrafficDescriptor.CONNECTION_CAPABILITY_LOW_LATENCY_LOSS_TOLERANT_UNACK

返回

生成器的同一实例。 此值不能为 null。

特性

注解

设置流量的连接功能。

Android 参考。android.telephony.data.TrafficDescriptor.Builder.setConnectionCapability

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

适用于