SubscriptionPlan.Types Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the characteristics of this subscription plan as a collection of type values.
public System.Collections.Generic.ICollection<Java.Lang.Integer> Types { [Android.Runtime.Register("getTypes", "()Ljava/util/Set;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getTypes", "()Ljava/util/Set;", "", ApiSince=37)>]
member this.Types : System.Collections.Generic.ICollection<Java.Lang.Integer>
Property Value
An unmodifiable collection of Integer plan type values. The collection is empty if no types are associated with the plan. This value cannot be null. Defined plan types include Cellular; Satellite; Iot; Postpaid; Prepaid; DataOnly; Family; Business; Roaming; and Tethering.
- Attributes
Remarks
Returns the characteristics of this subscription plan as a collection of type values. A plan can have multiple types that describe its nature. For example, a plan might be both a Cellular and a Postpaid plan.
The returned collection can be checked for specific plan types.
The types can be used to understand the plan's attributes and tailor an application's behavior. For instance, a data management app could display different UI elements for a Prepaid versus a Postpaid plan.
Android reference for android.telephony.SubscriptionPlan.getTypes.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.