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 package com.android.systemui.notetask
17 
18 import com.android.systemui.notetask.quickaffordance.NoteTaskQuickAffordanceConfig
19 import com.android.systemui.notetask.shortcut.LaunchNoteTaskActivity
20 import com.android.systemui.screenshot.appclips.AppClipsTrampolineActivity
21 
22 /**
23  * Supported entry points for [NoteTaskController.showNoteTask].
24  *
25  * An entry point represents where the note task has ben called from. In rare cases, it may
26  * represent a "re-entry" (i.e., [APP_CLIPS]).
27  */
28 enum class NoteTaskEntryPoint {
29 
30     /** @see [LaunchNoteTaskActivity] */
31     WIDGET_PICKER_SHORTCUT,
32 
33     /** @see [LaunchNoteTaskActivity] */
34     WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE,
35 
36     /** @see [NoteTaskQuickAffordanceConfig] */
37     QUICK_AFFORDANCE,
38 
39     /** @see [NoteTaskInitializer.callbacks] */
40     TAIL_BUTTON,
41 
42     /** @see [AppClipsTrampolineActivity] */
43     APP_CLIPS,
44 
45     /** @see [NoteTaskInitializer.callbacks] */
46     KEYBOARD_SHORTCUT,
47 }
48