blob: acad62ac130079fa2b5df84f18140b27a8e6ec21 [file] [log] [blame]
Kevin Chyn5906c172018-07-23 15:43:02 -07001/*
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
Kevin Chyne9275662018-07-23 16:42:06 -070017package com.android.systemui.biometrics;
Kevin Chyn5906c172018-07-23 15:43:02 -070018
19/**
20 * Callback interface for dialog views. These should be implemented by the controller (e.g.
21 * FingerprintDialogImpl) and passed into their views (e.g. FingerprintDialogView).
22 */
23public interface DialogViewCallback {
Kevin Chync53d9812019-07-30 18:10:30 -070024
25 int DISMISSED_USER_CANCELED = 1;
26 int DISMISSED_BUTTON_NEGATIVE = 2;
27 int DISMISSED_BUTTON_POSITIVE = 3;
28
29 int DISMISSED_AUTHENTICATED = 4;
30 int DISMISSED_ERROR = 5;
Kevin Chyn5906c172018-07-23 15:43:02 -070031
32 /**
Kevin Chync53d9812019-07-30 18:10:30 -070033 * Invoked when the dialog is dismissed
34 * @param reason
Kevin Chyn5906c172018-07-23 15:43:02 -070035 */
Kevin Chync53d9812019-07-30 18:10:30 -070036 void onDismissed(int reason);
Kevin Chyn5906c172018-07-23 15:43:02 -070037
38 /**
Kevin Chync53d9812019-07-30 18:10:30 -070039 * Invoked when the "try again" button is clicked
Kevin Chyn23289ef2018-11-28 16:32:36 -080040 */
41 void onTryAgainPressed();
Kevin Chyn5906c172018-07-23 15:43:02 -070042}