Kevin Chyn | 5906c17 | 2018-07-23 15:43:02 -0700 | [diff] [blame] | 1 | /* |
| 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 Chyn | e927566 | 2018-07-23 16:42:06 -0700 | [diff] [blame] | 17 | package com.android.systemui.biometrics; |
Kevin Chyn | 5906c17 | 2018-07-23 15:43:02 -0700 | [diff] [blame] | 18 | |
| 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 | */ |
| 23 | public interface DialogViewCallback { |
Kevin Chyn | c53d981 | 2019-07-30 18:10:30 -0700 | [diff] [blame^] | 24 | |
| 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 Chyn | 5906c17 | 2018-07-23 15:43:02 -0700 | [diff] [blame] | 31 | |
| 32 | /** |
Kevin Chyn | c53d981 | 2019-07-30 18:10:30 -0700 | [diff] [blame^] | 33 | * Invoked when the dialog is dismissed |
| 34 | * @param reason |
Kevin Chyn | 5906c17 | 2018-07-23 15:43:02 -0700 | [diff] [blame] | 35 | */ |
Kevin Chyn | c53d981 | 2019-07-30 18:10:30 -0700 | [diff] [blame^] | 36 | void onDismissed(int reason); |
Kevin Chyn | 5906c17 | 2018-07-23 15:43:02 -0700 | [diff] [blame] | 37 | |
| 38 | /** |
Kevin Chyn | c53d981 | 2019-07-30 18:10:30 -0700 | [diff] [blame^] | 39 | * Invoked when the "try again" button is clicked |
Kevin Chyn | 23289ef | 2018-11-28 16:32:36 -0800 | [diff] [blame] | 40 | */ |
| 41 | void onTryAgainPressed(); |
Kevin Chyn | 5906c17 | 2018-07-23 15:43:02 -0700 | [diff] [blame] | 42 | } |