Receiver

class Receiver(shuttle: Shuttle, scope: CoroutineScope, visibilityObservable: ShuttleVisibilityObservable, handleNoResponseReceived: Boolean = false) : BroadcastReceiver

A receiver that receives and processes broadcasts from the RemoteService.

Parameters

shuttle

used to store and pickup oversized cargo from the warehouse

scope

for emitting IOResults via Channels

handleNoResponseReceived

true to handle the situation when the app keeps showing the loading screen after a transaction too large exception is thrown in the service process

Constructors

Link copied to clipboard
constructor(shuttle: Shuttle, scope: CoroutineScope, visibilityObservable: ShuttleVisibilityObservable, handleNoResponseReceived: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val flow: Flow<IOResult>

A cold Flow of IOResult values emitted as broadcasts are received from the service.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val sentFromUid: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onReceive(context: Context?, intent: Intent?)

Receives and processes broadcasts from the RemoteService.

Link copied to clipboard
open fun peekService(myContext: Context?, service: Intent?): IBinder?
Link copied to clipboard
fun register(context: Context?)

Registers the receiver.

Link copied to clipboard

Releases the resources.

Link copied to clipboard
fun setOrderedHint(isOrdered: Boolean)
Link copied to clipboard
fun setResult(code: Int, data: String?, extras: Bundle?)
Link copied to clipboard
fun setResultExtras(extras: Bundle?)
Link copied to clipboard

Unregisters the receiver, catching a logging associated errors.