CustomCertManager

constructor(context: Context, trustSystemCerts: Boolean = true, appInForeground: StateFlow<Boolean>?)

Parameters

trustSystemCerts

whether system certificates will be trusted

appInForeground
  • true: if needed, directly launches TrustCertificateActivity and shows notification (if possible)

    • false: if needed, shows notification (if possible)

    • null: non-interactive mode: does not show notification or launch activity