public class SimInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
countryIso |
protected java.lang.String |
hni |
protected java.lang.String |
iccId |
protected java.lang.String |
imsi |
protected boolean |
networkRoaming |
protected java.lang.String |
operatorName |
int |
slotIdx
The slot that the SIM is in, starting from 0.
|
int |
subscriptionId
The Subscription ID assigned by Android.
|
Constructor and Description |
---|
SimInfo() |
SimInfo(SlotManager slotMgr) |
SimInfo(SubscriptionInfo subInfo,
Context c) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCountryIso()
The country ISO of the operator which provisioned the SIM
|
java.lang.String |
getIccId()
The Hardware identifier for the SIM.
|
java.lang.String |
getImsi()
The The International Mobile Subscriber Identity used by the network to identify the SIM.
|
java.lang.String |
getNetworkCountryIso()
The country ISO of the operator which the SIM is connected to
|
java.lang.String |
getNetworkOperator()
The network of the operator which the SIM is connected to
|
java.lang.String |
getNetworkOperatorName()
The network name of the operator which the SIM is connected to
|
java.lang.String |
getOperatorName()
The name of the operator which provisioned the SIM.
|
java.lang.String |
getOSReportedHni()
The Home Network Identifier.
|
static int |
getSubId(java.lang.String iccId,
Context c) |
boolean |
isNotContainedIn(java.util.List<SimInfo> simInfos) |
boolean |
isNotContainedInOrHasMoved(java.util.List<SimInfo> simInfos) |
boolean |
isRoaming()
Whether the SIM is currently roaming.
|
boolean |
isSameSim(SimInfo simInfo) |
static java.util.List<SimInfo> |
loadAll(Context c) |
static SimInfo |
loadBySlot(int slotIdx,
Context c) |
static java.util.List<SimInfo> |
loadPresentByHni(JSONArray hniList,
Context c) |
void |
save(Context c) |
void |
setSimRemoved(Context c) |
java.lang.String |
toString() |
public int slotIdx
public int subscriptionId
protected java.lang.String iccId
protected java.lang.String imsi
protected java.lang.String hni
protected java.lang.String operatorName
protected java.lang.String countryIso
protected boolean networkRoaming
public SimInfo()
public SimInfo(SlotManager slotMgr)
public SimInfo(SubscriptionInfo subInfo, Context c)
public java.lang.String getIccId()
public java.lang.String getImsi()
public java.lang.String getOSReportedHni()
getImsi()
public java.lang.String getOperatorName()
public java.lang.String getCountryIso()
public java.lang.String getNetworkOperator()
public java.lang.String getNetworkOperatorName()
public java.lang.String getNetworkCountryIso()
public boolean isRoaming()
public boolean isSameSim(SimInfo simInfo)
public boolean isNotContainedIn(java.util.List<SimInfo> simInfos)
public boolean isNotContainedInOrHasMoved(java.util.List<SimInfo> simInfos)
public void save(Context c)
public void setSimRemoved(Context c)
public static int getSubId(java.lang.String iccId, Context c)
public static java.util.List<SimInfo> loadPresentByHni(JSONArray hniList, Context c)
public static SimInfo loadBySlot(int slotIdx, Context c)
public static java.util.List<SimInfo> loadAll(Context c)
public java.lang.String toString()
toString
in class java.lang.Object