語言

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[]

這個值不可能為零值。 價值屬於以下之一: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

傳回

一個包含適用PLAN_TYPE_常數的陣列。 這個值不可能為零值。

屬性

備註

設定此訂閱方案的類型。 一個計畫可以有多種類型,這個方法會回傳所有適用的類型。 例如,方案可以同時是行動方案和後付費方案。

Android 參考資料。android.telephony.SubscriptionPlan.Builder.setTypes

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於