public abstract class UnbluCallEventReceiver
extends android.content.BroadcastReceiver
The functions for the needed events can be overridden.
Modifier | Constructor and Description |
---|---|
|
UnbluCallEventReceiver(android.content.Context context) |
protected |
UnbluCallEventReceiver(android.content.Context context,
android.content.IntentFilter filter) |
Modifier and Type | Method and Description |
---|---|
protected void |
onCallActiveChanged(boolean active)
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
protected void |
onUnknownEventReceive(android.content.Intent intent)
Triggered if an unknown call event is received.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public UnbluCallEventReceiver(@NonNull android.content.Context context)
context
- of the applicationprotected UnbluCallEventReceiver(@NonNull android.content.Context context, @NonNull android.content.IntentFilter filter)
context
- of the applicationfilter
- already defined filter for additional eventspublic void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
protected void onCallActiveChanged(boolean active)
active
- IUnbluCallEventApi.CallActiveChanged.VALUE_ACTIVE
protected void onUnknownEventReceive(@NonNull android.content.Intent intent)
intent
- Intent with an unknown action key