Package-level declarations

Types

Link copied to clipboard
data class AccountConfig(val accountType: String)

Décrit un type de compte à interroger ou créer.

Link copied to clipboard
class AccountHelper(context: Context)

Helper de gestion de comptes système centralisé.

Link copied to clipboard
class AudioHelper(context: Context)

Helper audio centralisé.

Link copied to clipboard
class BackgroundHelper(context: Context)

Unified helper for running tasks in the background.

Link copied to clipboard
sealed class BackgroundMode

Describes which background execution strategy fits your use case.

Link copied to clipboard
typealias BackgroundTask = suspend () -> Unit

The actual work to execute in the background. Always a suspend lambda so it works uniformly across all modes.

Link copied to clipboard
Link copied to clipboard
class BatteryHelper(context: Context)

Centralized battery helper for Android.

Link copied to clipboard
data class BatteryStatus(val level: Int, val isCharging: Boolean, val chargeType: ChargeType, val health: BatteryHealth, val temperature: Int, val voltage: Int)

Current battery status information.

Link copied to clipboard
data class BiometricConfig(val title: String, val subtitle: String = "", val description: String = "", val negativeButtonText: String = "Annuler", val allowedAuthenticators: Int = Authenticators.BIOMETRIC_STRONG, val keyAlias: String = "biometric_auth_key")

Configuration pour le dialogue biométrique.

Link copied to clipboard
@RequiresApi(value = 23)
class BiometricHelper(context: Context, keystoreHelper: KeystoreHelper = KeystoreHelper())

Helper biométrique réutilisant KeystoreHelper pour garantir la sécurité des opérations via CryptoObject.

Link copied to clipboard
sealed class BiometricResult
Link copied to clipboard
class BluetoothHelper(context: Context)

Helper Bluetooth centralisé.

Link copied to clipboard
data class BluetoothScanConfig(val durationMs: Long)

Décrit une configuration de scan Bluetooth.

Link copied to clipboard
sealed class BluetoothState
Link copied to clipboard
data class BootTask(val taskKey: String, val mode: BackgroundMode = BackgroundMode.WorkManagerOnce(uniqueName = taskKey), val rescheduleScheduled: BackgroundMode.WorkManagerScheduled? = null)

Descriptor for a task to run automatically on device boot.

Link copied to clipboard
class BrightnessHelper(context: Context)

Helper de luminosité centralisé.

Link copied to clipboard
data class BrightnessLevel(val value: Float)

Décrit un niveau de luminosité d'écran.

Link copied to clipboard
data class CameraConfig(val lensFacing: Int = CameraSelector.LENS_FACING_BACK, val captureMode: Int = ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY, val flashMode: Int = ImageCapture.FLASH_MODE_AUTO, val jpegQuality: Int = 95)

Décrit la configuration de la session caméra.

Link copied to clipboard
class CameraHelper(context: Context)

Helper CameraX centralisé.

Link copied to clipboard
sealed class CaptureResult
Link copied to clipboard
Link copied to clipboard
data class ClipboardContent(val label: String, val text: String)

Décrit le contenu à copier dans le presse-papiers.

Link copied to clipboard
class ClipboardHelper(context: Context)

Helper presse-papiers centralisé.

Link copied to clipboard
class ConnectivityHelper(context: Context)

Centralized network connectivity helper for Android.

Link copied to clipboard
data class ContactInfo(val id: String, val displayName: String, val phones: List<String> = emptyList(), val emails: List<String> = emptyList(), val photoUri: Uri? = null)

Informations d'un contact.

Link copied to clipboard
data class ContactQuery(val nameFilter: String? = null, val requirePhone: Boolean = false, val limit: Int = Int.MAX_VALUE)

Décrit une requête de recherche de contacts.

Link copied to clipboard
class ContactsHelper(context: Context)

Helper de contacts centralisé.

Link copied to clipboard
class DisplayHelper(context: Context)

Helper d'affichage centralisé.

Link copied to clipboard
data class DisplayInfo(val widthPx: Int, val heightPx: Int, val densityDpi: Int, val density: Float, val refreshRate: Float, val orientation: Int)

Informations sur l'écran principal.

Link copied to clipboard
data class DownloadConfig(val url: String, val fileName: String, val title: String = fileName, val description: String = "", val mimeType: String = "*/*", val destinationDir: String = Environment.DIRECTORY_DOWNLOADS, val requiresWifi: Boolean = false, val allowMetered: Boolean = true, val visibleInNotification: Boolean = true)

Describes a download task to be performed via DownloadManager.

Link copied to clipboard
class DownloadHelper(context: Context)

Centralized download helper based on Android's DownloadManager.

Link copied to clipboard
sealed class DownloadStatus
Link copied to clipboard
data class EncryptedData(val ciphertext: String, val iv: String)

Résultat d'un chiffrement : données chiffrées + IV encodés en Base64.

Link copied to clipboard
data class FileDestination(val collection: Uri, val relativePath: String)

Describes the destination of a file in Android's MediaStore.

Link copied to clipboard
class FileHelper(context: Context)

Centralized file helper for Android (MediaStore + Storage Access Framework).

Link copied to clipboard
data class HapticEffect(val constant: Int)

Décrit un effet haptique sémantique via HapticFeedbackConstants.

Link copied to clipboard

Helper haptique centralisé basé sur HapticFeedbackConstants.

Link copied to clipboard

BroadcastReceiver that runs registered BootTasks on device boot.

Link copied to clipboard
data class KeystoreConfig(val alias: String, val requireBiometric: Boolean = false, val invalidatedByBiometricEnrollment: Boolean = true, val keySize: Int = 256)

Décrit la configuration d'une clé dans l'Android Keystore.

Link copied to clipboard
@RequiresApi(value = 23)
class KeystoreHelper

Helper Android Keystore centralisé (AES-256-GCM).

Link copied to clipboard

Generic foreground Service used internally by BackgroundHelper. Task is injected via BackgroundHelper.startForeground.

Link copied to clipboard

Generic CoroutineWorker used internally by BackgroundHelper. Register your task via BackgroundHelper.registerWorker before scheduling.

Link copied to clipboard
data class LocationConfig(val priority: Int = Priority.PRIORITY_BALANCED_POWER_ACCURACY, val intervalMs: Long, val minUpdateMs: Long, val minUpdateMeters: Float = 0.0f)

Describes the accuracy and frequency of location updates.

Link copied to clipboard
class LocationHelper(context: Context)

Centralized location helper based on Google Play Services FusedLocationProviderClient.

Link copied to clipboard
sealed class NetworkStatus

Represents the current network connectivity status.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class NfcHelper(context: Context)

Helper NFC centralisé.

Link copied to clipboard
data class NfcReadConfig(val readerFlags: Int = NfcAdapter.FLAG_READER_NFC_A or NfcAdapter.FLAG_READER_NFC_B or NfcAdapter.FLAG_READER_NFC_F or NfcAdapter.FLAG_READER_NFC_V, val presenceCheckDelay: Int = 300)

Décrit la configuration d'une session de lecture NFC.

Link copied to clipboard
sealed class NfcState
Link copied to clipboard
sealed class NfcTagResult

Résultat d'une lecture de tag NFC.

Link copied to clipboard
data class NotificationChannelConfig(val id: String, val name: String, val description: String = "", val importance: Int = 3)

Describes a notification channel to be registered with the system.

Link copied to clipboard
data class NotificationConfig(val id: Int, val channelId: String, val title: String, val body: String, val smallIcon: Int, val priority: Int = NotificationCompat.PRIORITY_DEFAULT, val autoCancel: Boolean = true, val contentIntent: PendingIntent? = null, val ongoing: Boolean = false)

Describes a local notification to be posted to the system tray.

Link copied to clipboard
class NotificationHelper(context: Context)

Centralized helper for managing Android local notifications.

Link copied to clipboard
class PermissionHelper(context: Context)

Helper de permissions centralisé.

Link copied to clipboard
data class PermissionRequest(val permissions: List<String>)

Décrit une ou plusieurs permissions à demander.

Link copied to clipboard
sealed class PermissionStatus

Résultat d'une vérification ou d'une demande de permission.

Link copied to clipboard

Helper for requesting Play Integrity tokens on Android.

Link copied to clipboard
class PowerHelper(context: Context)

Helper de gestion de l'énergie centralisé.

Link copied to clipboard
data class SensorConfig(val sensorType: Int, val samplingUs: Int = SensorManager.SENSOR_DELAY_NORMAL)

Décrit un capteur et sa fréquence d'échantillonnage.

Link copied to clipboard
class SensorHelper(context: Context)

Helper de capteurs centralisé.

Link copied to clipboard
data class SensorReading(val values: FloatArray, val accuracy: Int, val timestampNs: Long)

Lecture d'un capteur : valeurs brutes + timestamp.

Link copied to clipboard
data class ShareContent(val mimeType: String = "text/plain", val subject: String = "", val text: String = "", val fileUri: Uri? = null, val chooserTitle: String = "Partager via")

Décrit le contenu à partager via le système Android.

Link copied to clipboard
class ShareHelper(context: Context)

Helper de partage système centralisé.

Link copied to clipboard
Link copied to clipboard
data class SmsConfig(val to: String, val body: String, val split: Boolean = true)

Décrit un SMS à envoyer.

Link copied to clipboard
class SmsHelper(context: Context)

Helper SMS centralisé.

Link copied to clipboard
data class SoundAsset(val resId: Int, val volume: Float = 1.0f, val rate: Float = 1.0f, val priority: Int = 1)

Décrit un son système sémantique à jouer via SoundPool.

Link copied to clipboard
data class SystemFxAsset(val fx: Int, val volume: Float = 1.0f)

Effet sonore système joué via AudioManager.playSoundEffect — pas de chargement SoundPool requis.

Link copied to clipboard
class TelephonyHelper(context: Context)

Helper téléphonique centralisé.

Link copied to clipboard
data class TelephonyInfo(val simState: SimState, val networkType: NetworkType, val operatorName: String, val isRoaming: Boolean)

Informations réseau téléphonique courantes.

Link copied to clipboard
class ThermalHelper(context: Context)

Helper d'état thermique centralisé (API 29+).

Link copied to clipboard

État thermique de l'appareil (API 29+).

Link copied to clipboard
class ToastHelper(context: Context)

Centralized Toast helper for Android.

Link copied to clipboard
data class ToastStyle(val duration: Int)

Describes a semantic toast style, determining how long the message is displayed.

Link copied to clipboard
class VibrationHelper(context: Context)

Centralized vibration helper for Android.

Link copied to clipboard
data class VibrationPattern(val timings: LongArray, val amplitudes: IntArray, val fallbackMs: Long)

Describes a semantic vibration pattern.

Link copied to clipboard
data class WakeLockConfig(val tag: String, val levelAndFlags: Int = PowerManager.PARTIAL_WAKE_LOCK, val timeoutMs: Long = 0)

Décrit un WakeLock à acquérir.

Link copied to clipboard
class WifiHelper(context: Context)

Helper Wi-Fi centralisé.

Link copied to clipboard
data class WifiNetworkInfo(val ssid: String, val bssid: String, val rssi: Int, val linkSpeedMbps: Int, val frequency: Int)

Informations sur le réseau Wi-Fi actuellement connecté.

Link copied to clipboard
sealed class WifiState
Link copied to clipboard
data class WindowConfig(val hideStatusBar: Boolean = false, val hideNavBar: Boolean = false, val lightStatusBarIcons: Boolean? = null, val lightNavBarIcons: Boolean? = null)

Décrit la configuration d'affichage de la fenêtre.

Link copied to clipboard
class WindowHelper(context: Context)

Helper de gestion de fenêtre centralisé.