• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.wm.shell.bubbles;
18 
19 import android.os.Bundle;
20 import com.android.wm.shell.shared.bubbles.BubbleBarLocation;
21 /**
22  * Listener interface that Launcher attaches to SystemUI to get bubbles callbacks.
23  */
24 oneway interface IBubblesListener {
25 
26     /**
27      * Called when the bubbles state changes.
28      */
onBubbleStateChange(in Bundle update)29     void onBubbleStateChange(in Bundle update);
30 
31     /**
32      * Called when bubble bar should temporarily be animated to a new location.
33      * Does not result in a state change.
34      */
animateBubbleBarLocation(in BubbleBarLocation location)35     void animateBubbleBarLocation(in BubbleBarLocation location);
36 
37     /**
38      * Called when an application icon is being dragged over the Bubble Bar drop zone.
39      * The location of the Bubble Bar is provided as an argument.
40      */
onDragItemOverBubbleBarDragZone(in BubbleBarLocation location)41     void onDragItemOverBubbleBarDragZone(in BubbleBarLocation location);
42 
43     /**
44      * Called when an application icon is being dragged outside the Bubble Bar drop zone.
45      * Always called after {@link #onDragItemOverBubbleBarDragZone(BubbleBarLocation)}
46      */
onItemDraggedOutsideBubbleBarDropZone()47     void onItemDraggedOutsideBubbleBarDropZone();
48 }