语言

SubscriptionPlan.Builder.SetTypes(Int32[]) 方法

定义

设置此订阅计划的类型。

[Android.Runtime.Register("setTypes", "([I)Landroid/telephony/SubscriptionPlan$Builder;", "GetSetTypes_arrayIHandler", ApiSince=37)]
public virtual Android.Telephony.SubscriptionPlan.Builder SetTypes(int[] types);
[<Android.Runtime.Register("setTypes", "([I)Landroid/telephony/SubscriptionPlan$Builder;", "GetSetTypes_arrayIHandler", ApiSince=37)>]
abstract member SetTypes : int[] -> Android.Telephony.SubscriptionPlan.Builder
override this.SetTypes : int[] -> Android.Telephony.SubscriptionPlan.Builder

参数

types
Int32[]

此值不能为 null。 值为下列值之一:SubscriptionPlan.PLAN_TYPE_CELLULAR;SubscriptionPlan.PLAN_TYPE_SATELLITE;SubscriptionPlan.PLAN_TYPE_IOT;SubscriptionPlan.PLAN_TYPE_POSTPAID;SubscriptionPlan.PLAN_TYPE_PREPAID;SubscriptionPlan.PLAN_TYPE_DATA_ONLY;SubscriptionPlan.PLAN_TYPE_FAMILY;SubscriptionPlan.PLAN_TYPE_BUSINESS;SubscriptionPlan.PLAN_TYPE_ROAMING;SubscriptionPlan.PLAN_TYPE_TETHERING

返回

此生成器。 此值不能为 null。

特性

注解

设置此订阅计划的类型。 计划可以有多个类型。 例如,计划可以是手机网络计划和后付费计划。

Android 参考。android.telephony.SubscriptionPlan.Builder.setTypes

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

适用于