blob: b11329ad01354f94cd9de263d719ef7aa70b0ff6 [file] [log] [blame]
Milo Sredkovb0f55e92018-04-04 16:13:28 +01001/*
2 * Copyright (C) 2018 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
17package com.android.systemui.statusbar.phone;
18
Jason Monk297c04e2018-08-23 17:16:59 -040019import com.android.systemui.plugins.ActivityStarter.OnDismissAction;
Milo Sredkovb0f55e92018-04-04 16:13:28 +010020
21
22/** Executes actions that require the screen to be unlocked. */
23public interface KeyguardDismissHandler {
Milo Sredkove433e9b2018-05-01 22:45:38 +010024 /**
25 * Executes an action that requres the screen to be unlocked, showing the keyguard if
26 * necessary. Does not close the notification shade (in case it was open).
Selim Cinekd17b3502019-07-02 20:38:32 -070027 * @param requiresShadeOpen does the shade need to be forced open when hiding the keyguard?
Milo Sredkove433e9b2018-05-01 22:45:38 +010028 */
Selim Cinekd17b3502019-07-02 20:38:32 -070029 void executeWhenUnlocked(OnDismissAction action, boolean requiresShadeOpen);
Milo Sredkovb0f55e92018-04-04 16:13:28 +010030}