-
public final class SimBindingHelper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSimBindingHelper.Companionpublic final classSimBindingHelper.SimIdentifier
-
Constructor Summary
Constructors Constructor Description SimBindingHelper(Context context)
-
Method Summary
Modifier and Type Method Description final UnitsaveSimBinding()Save current SIM hashes into SharedPreferences final BooleanhasSimChanged()Check if the current SIMs are different from the stored ones final BooleanisSimBindingAvailable()Returns true if there is at least one SIM present and identifiable final List<SimBindingHelper.SimIdentifier>getSimIdentifiers()Retrieves SIM identifiers from active subscriptions final BooleanshouldUpdateSimBinding()Used externally before calling saveSimBinding() to avoid re-saving unchanged data -
-
Constructor Detail
-
SimBindingHelper
SimBindingHelper(Context context)
-
-
Method Detail
-
saveSimBinding
@RequiresApi(value = 29) final Unit saveSimBinding()
Save current SIM hashes into SharedPreferences
-
hasSimChanged
@RequiresApi(value = 29) final Boolean hasSimChanged()
Check if the current SIMs are different from the stored ones
-
isSimBindingAvailable
@RequiresApi(value = 29) final Boolean isSimBindingAvailable()
Returns true if there is at least one SIM present and identifiable
-
getSimIdentifiers
@RequiresApi(value = 29) final List<SimBindingHelper.SimIdentifier> getSimIdentifiers()
Retrieves SIM identifiers from active subscriptions
-
shouldUpdateSimBinding
@RequiresApi(value = 29) final Boolean shouldUpdateSimBinding()
Used externally before calling saveSimBinding() to avoid re-saving unchanged data
-
-
-
-