1 /*
2  * Copyright (C) 2022 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  */
17 
18 package com.android.systemui.keyguard.shared.model
19 
20 import android.content.Intent
21 import androidx.annotation.DrawableRes
22 
23 /**
24  * Representation of a quick affordance for use to build "picker", "selector", or "settings"
25  * experiences.
26  */
27 data class KeyguardQuickAffordancePickerRepresentation(
28     val id: String,
29     val name: String,
30     @DrawableRes val iconResourceId: Int,
31 
32     /** Whether this quick affordance is enabled. */
33     val isEnabled: Boolean = true,
34 
35     /** If not enabled, a user-visible explanation as to why. */
36     val explanation: String? = null,
37 
38     /**
39      * If not enabled, an optional label for a button that takes the user to a destination where
40      * they can re-enable it.
41      */
42     val actionText: String? = null,
43 
44     /** Optional [Intent] to use to start an activity to re-enable this affordance. */
45     val actionIntent: Intent? = null,
46 
47     /** Optional [Intent] to use to start an activity to configure this affordance. */
48     val configureIntent: Intent? = null,
49 )
50