Speedify SDK for Android 15.6.2
Loading...
Searching...
No Matches
PooledBroadcastReceiver Class Referenceabstract

Helper class for running BroadcastReceiver code off the main thread in a shared threadpool. More...

Inheritance diagram for PooledBroadcastReceiver:
StartupBroadcastReceiver StateTrackingSBR

Public Member Functions

final void onReceive (final Context context, final Intent intent)
 Overrides BroadcastReceiver's onReceive to post a new Runnable to the threadpool.
 
abstract void receive (Context context, Intent intent)
 Implement this with your BroadcastReceiver code.
 

Detailed Description

Helper class for running BroadcastReceiver code off the main thread in a shared threadpool.

Implement receive to run your receiver in a background thread.

Since
7.2

Member Function Documentation

◆ onReceive()

final void onReceive ( final Context context,
final Intent intent )

Overrides BroadcastReceiver's onReceive to post a new Runnable to the threadpool.

Do not override.

Parameters
contextContext
intentThe received intent

◆ receive()

abstract void receive ( Context context,
Intent intent )
abstract

Implement this with your BroadcastReceiver code.

This takes the place of BroadcastReceiver's onReceive in your code.

Parameters
contextContext
intentThe received intent
Since
7.2

Reimplemented in StartupBroadcastReceiver, and StateTrackingSBR.


The documentation for this class was generated from the following file: