public abstract class UnbluEventReceiver
extends android.content.BroadcastReceiver
The functions for the needed events can be overridden.
Modifier | Constructor and Description |
---|---|
|
UnbluEventReceiver(android.content.Context context) |
protected |
UnbluEventReceiver(android.content.Context context,
android.content.IntentFilter filter) |
Modifier and Type | Method and Description |
---|---|
protected void |
onApiIsInitialized(boolean isInitialized)
|
protected void |
onCallActiveChanged(boolean active)
|
protected void |
onError(UnbluApiErrorType errorType,
java.lang.String message)
|
protected void |
onMobileCoBrowsingChanged(boolean active)
|
protected void |
onNotification(java.lang.String title,
java.lang.String body,
UnbluNotificationTag tag)
|
protected void |
onPersonChanged(PersonInfo personInfo)
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
protected void |
onUiPreloaded()
|
protected void |
onUIReady()
|
protected void |
onUnknownEventReceive(android.content.Intent intent)
Triggered if an unknown event is received.
|
protected void |
onUnreadMessagesCountChanged(int count)
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public UnbluEventReceiver(@NonNull android.content.Context context)
context
- of the applicationprotected UnbluEventReceiver(@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 onApiIsInitialized(boolean isInitialized)
isInitialized
- IUnbluEventApi.ApiIsInitialized.VALUE_IS_INITIALIZED
protected void onUiPreloaded()
protected void onUIReady()
protected void onNotification(@Nullable java.lang.String title, @Nullable java.lang.String body, @NonNull UnbluNotificationTag tag)
title
- IUnbluEventApi.Notification.VALUE_TITLE
body
- IUnbluEventApi.Notification.VALUE_BODY
tag
- IUnbluEventApi.Notification.VALUE_TAG
protected void onError(@NonNull UnbluApiErrorType errorType, @Nullable java.lang.String message)
errorType
- IUnbluEventApi.Error.VALUE_TYPE
message
- IUnbluEventApi.Error.VALUE_MESSAGE
protected void onUnreadMessagesCountChanged(int count)
count
- IUnbluEventApi.UnreadMessagesCountChanged.VALUE_COUNT
protected void onCallActiveChanged(boolean active)
active
- IUnbluEventApi.CallActiveChanged.VALUE_ACTIVE
protected void onPersonChanged(PersonInfo personInfo)
personInfo
- IUnbluEventApi.PersonChanged.VALUE_ID
and IUnbluEventApi.PersonChanged.VALUE_DISPLAY_NAME
protected void onMobileCoBrowsingChanged(boolean active)
active
- IUnbluEventApi.MobileCoBrowsingChanged.VALUE_ACTIVE
protected void onUnknownEventReceive(@NonNull android.content.Intent intent)
intent
- Intent with an unknown action key