Skip to content

//sorisdk/com.iplateia.sorisdk/SORIAudioRecognitionService/onTimeout

onTimeout

[androidJvm]
open override fun onTimeout(startId: Int, fgsType: Int)

Called when the foreground service has reached its time limit on Android 15+. The service must stop itself within this callback. This is only called by the system when:

  1. The device is running Android 15+ (API 35+)
  2. The app targets Android 15+ (API 35+)
  3. The service has been running for 6 hours within a 24-hour period