1 /*
2  * Copyright 2019, 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 package com.android.managedprovisioning.preprovisioning.consent;
17 
18 import android.app.Activity;
19 import com.android.managedprovisioning.preprovisioning.PreProvisioningController.UiParams;
20 
21 /**
22  * Contract for the consent screen.
23  */
24 public interface ConsentUiHelper {
25 
26     /**
27      * Starts the consent screen. Designed to be called from {@link Activity#onStart()}.
28      */
onStart()29     void onStart();
30 
31     /**
32      * Stops the consent screen. Designed to be called from {@link Activity#onStop()}.
33      */
onStop()34     void onStop();
35 
36     /**
37      * Shows the consent screen.
38      * @param uiParams parameters related to the UI
39      */
initiateUi(UiParams uiParams)40     void initiateUi(UiParams uiParams);
41 }
42