SubscriptionInfo
public class SubscriptionInfo
extends Object implements Parcelable
订阅信息的Parcelable类。
摘要(Summary)
Fields
公共方法(Public methods)
createIconBitmap
Bitmap createIconBitmap (Context context)
创建并返回图标 Bitmap以在用户界面中表示此 SubscriptionInfo 。
| 参数(Parameters) |
context |
Context: A Context to get the DisplayMetricss from. |
| 返回(Returns) |
Bitmap |
A bitmap icon for this SubscriptionInfo. |
getCarrierName
CharSequence getCarrierName ()
| 返回(Returns) |
CharSequence |
the name displayed to the user that identifies Subscription provider name |
getCountryIso
String getCountryIso ()
| 返回(Returns) |
String |
the ISO country code |
getDataRoaming
int getDataRoaming ()
getDisplayName
CharSequence getDisplayName ()
| 返回(Returns) |
CharSequence |
the name displayed to the user that identifies this subscription |
getIconTint
int getIconTint ()
用于显示有关此 PhoneAccount信息的高亮颜色。
| 返回(Returns) |
int |
A hexadecimal color value. |
getNumber
String getNumber ()
| 返回(Returns) |
String |
the number of this subscription. |
getSimSlotIndex
int getSimSlotIndex ()
| 返回(Returns) |
int |
the slot index of this Subscription's SIM card. |
getSubscriptionId
int getSubscriptionId ()
| 返回(Returns) |
int |
the subscription ID. |
toString
String toString ()
返回对象的字符串表示形式。 通常, toString方法返回一个字符串,用于“文本地表示”此对象。 结果应该是一个简洁但内容丰富的表述,对于一个人来说很容易阅读。 建议所有子类重写此方法。
类Object的toString方法返回一个字符串,其中包含对象为实例的类的名称,符号字符“ @ ”以及对象的哈希代码的无符号十六进制表示形式。 换句话说,这个方法返回一个字符串,其值等于:
getClass().getName() + '@' + Integer.toHexString(hashCode())
| 返回(Returns) |
String |
a string representation of the object. |
writeToParcel
void writeToParcel (Parcel dest,
int flags)
将此对象平铺到一个包裹中。
| 参数(Parameters) |
dest |
Parcel: The Parcel in which the object should be written. |
flags |
int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |