Normally bubble notifications are shown by Bubbles, but in some cases the bubble
* notification is suppressed and should be shown by the Notifications pipeline as regular
* notifications.
*/
boolean canShowBubbleNotification();
/**
* A listener to be notified of bubble state changes, used by launcher to render bubbles in
* its process.
*/
interface BubbleStateListener {
/**
* Called when the bubbles state changes.
*/
void onBubbleStateChange(BubbleBarUpdate update);
/**
* Called when bubble bar should temporarily be animated to a new location.
* Does not result in a state change.
*/
void animateBubbleBarLocation(BubbleBarLocation location);
}
/** Listener to find out about stack expansion / collapse events. */
interface BubbleExpandListener {
/**
* Called when the expansion state of the bubble stack changes.
*
* @param isExpanding whether it's expanding or collapsing
* @param key the notification key associated with bubble being expanded
*/
void onBubbleExpandChanged(boolean isExpanding, String key);
}
/** Listener to be notified when the flags on BubbleMetadata have changed. */
interface BubbleMetadataFlagListener {
/** Called when the flags on BubbleMetadata have changed for the provided bubble. */
void onBubbleMetadataFlagChanged(Bubble bubble);
}
/** Listener to be notified when a pending intent has been canceled for a bubble. */
interface PendingIntentCanceledListener {
/** Called when the pending intent for a bubble has been canceled. */
void onPendingIntentCanceled(Bubble bubble);
}
/** Callback to tell SysUi components execute some methods. */
interface SysuiProxy {
/** Provider interface for {@link SysuiProxy}. */
interface Provider {
/** Returns {@link SysuiProxy}. */
SysuiProxy getSysuiProxy();
}
void isNotificationPanelExpand(Consumer> callback);
void setNotificationInterruption(String key);
void requestNotificationShadeTopUi(boolean requestTopUi, String componentTag);
void notifyRemoveNotification(String key, int reason);
void notifyInvalidateNotifications(String reason);
void updateNotificationBubbleButton(String key);
void onStackExpandChanged(boolean shouldExpand);
void onManageMenuExpandChanged(boolean menuExpanded);
void onUnbubbleConversation(String key);
}
}