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, setResultExtraspublic 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.BroadcastReceiverprotected void onApiIsInitialized(boolean isInitialized)
isInitialized - IUnbluEventApi.ApiIsInitialized.VALUE_IS_INITIALIZEDprotected 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_TITLEbody - IUnbluEventApi.Notification.VALUE_BODYtag - IUnbluEventApi.Notification.VALUE_TAGprotected void onError(@NonNull
UnbluApiErrorType errorType,
@Nullable
java.lang.String message)
errorType - IUnbluEventApi.Error.VALUE_TYPEmessage - IUnbluEventApi.Error.VALUE_MESSAGEprotected void onUnreadMessagesCountChanged(int count)
count - IUnbluEventApi.UnreadMessagesCountChanged.VALUE_COUNTprotected void onCallActiveChanged(boolean active)
active - IUnbluEventApi.CallActiveChanged.VALUE_ACTIVEprotected void onPersonChanged(PersonInfo personInfo)
personInfo - IUnbluEventApi.PersonChanged.VALUE_ID and IUnbluEventApi.PersonChanged.VALUE_DISPLAY_NAMEprotected void onMobileCoBrowsingChanged(boolean active)
active - IUnbluEventApi.MobileCoBrowsingChanged.VALUE_ACTIVEprotected void onUnknownEventReceive(@NonNull
android.content.Intent intent)
intent - Intent with an unknown action key