• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License;
5  *  Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing;
12  *  software
13  * distributed under the License is distributed on an "AS IS" BASIS;
14  *
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND;
16  *  either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 package com.android.permissioncontroller.permission.ui
21 
22 import androidx.annotation.DrawableRes
23 import androidx.annotation.StringRes
24 import com.android.permissioncontroller.permission.ui.model.AppPermissionViewModel
25 
26 data class AdvancedConfirmDialogArgs(
27     @DrawableRes val iconId: Int = 0,
28     @StringRes val titleId: Int = 0,
29     @StringRes val messageId: Int,
30     @StringRes val negativeButtonTextId: Int,
31     @StringRes val positiveButtonTextId: Int,
32 
33     val changeRequest: AppPermissionViewModel.ChangeRequest? = null,
34     val setOneTime: Boolean? = null,
35     val buttonClicked: Int? = null
36 )