public abstract class UnbluUiEventReceiver
extends android.content.BroadcastReceiver
The functions for the needed events can be overridden.
Modifier | Constructor and Description |
---|---|
|
UnbluUiEventReceiver(android.content.Context context) |
protected |
UnbluUiEventReceiver(android.content.Context context,
android.content.IntentFilter filter) |
Modifier and Type | Method and Description |
---|---|
protected void |
onCallUiOpenChanged(boolean open)
|
protected void |
onOpenConversationChanged(java.lang.String conversationId)
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
protected void |
onUiHideRequest(UnbluUiHideRequestReason reason,
java.lang.String conversationId)
|
protected void |
onUiIsVisible(boolean isVisible)
|
protected void |
onUiVisibilityRequest(UnbluUiRequestReason reason,
java.lang.String accountId)
|
protected void |
onUiVisibilityTransition(UnbluUiVisibilityTransition transition)
|
protected void |
onUnknownEventReceive(android.content.Intent intent)
Triggered if an unknown event is received.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public UnbluUiEventReceiver(@NonNull android.content.Context context)
context
- of the applicationprotected UnbluUiEventReceiver(@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 onUiIsVisible(boolean isVisible)
isVisible
- IUnbluUiEventApi.IsVisible.VALUE_IS_VISIBLE
protected void onUiVisibilityTransition(UnbluUiVisibilityTransition transition)
transition
- IUnbluUiEventApi.VisibilityTransition.VALUE_TRANSITION
protected void onOpenConversationChanged(@Nullable java.lang.String conversationId)
conversationId
- IUnbluUiEventApi.OpenConversationChanged.VALUE_CONVERSATION_ID
protected void onUiVisibilityRequest(UnbluUiRequestReason reason, java.lang.String accountId)
reason
- IUnbluUiEventApi.UiVisibilityRequest.VALUE_REASON
accountId
- IUnbluUiEventApi.UiVisibilityRequest.VALUE_ACCOUNT_ID
protected void onUiHideRequest(UnbluUiHideRequestReason reason, java.lang.String conversationId)
reason
- IUnbluUiEventApi.UiHideRequest.VALUE_REASON
conversationId
- IUnbluUiEventApi.UiHideRequest.VALUE_CONVERSATION_ID
protected void onCallUiOpenChanged(boolean open)
open
- IUnbluUiEventApi.CallUiOpenChanged.VALUE_OPEN
protected void onUnknownEventReceive(@NonNull android.content.Intent intent)
intent
- Intent with an unknown action key