CoroutineReceiver

A BroadcastReceiver that calls goAsync and launches a coroutine to execute long-running tasks. The receive method is still executed on main thread, move to another thread as needed.

According to Android limitations, you still have about 10 seconds to finish the execution before the system forcibly kills the receiver. For longer tasks, use WorkManager or a Service

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSentFromUid(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onReceive(context: Context, intent: Intent?)
Link copied to clipboard
open fun peekService(p0: Context, p1: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setResult(p0: Int, p1: String, p2: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard