onStartCommand

open override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int

A lifecycle callback method that overrides Service.onStartCommand.

This callback is invoked by the system every time a client explicitly starts the service.