TelephonyHelper
Helper téléphonique centralisé.
Permissions requises selon l'usage :
READ_PHONE_STATE→ état SIM, type réseau, isRoamingCALL_PHONE→ lancer un appel direct
Enregistrement Koin :
single { TelephonyHelper(androidContext()) }Content copied to clipboard
Utilisation :
val info = telephonyHelper.getInfo()
println("Opérateur : ${info.operatorName} — ${info.networkType}")
// Ouvrir le composeur (pas de permission)
telephonyHelper.openDialer(context, "+33612345678")
// Appel direct (CALL_PHONE requis)
telephonyHelper.callDirect(context, "+33612345678")Content copied to clipboard
Functions
Link copied to clipboard
Lance un appel direct — nécessite CALL_PHONE.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Ouvre le composeur pré-rempli — aucune permission requise.