Files
packages_apps_Settings/src/com/android/settings/homepage/contextualcards/ContextualCardController.java
Emily Chuang 6cf3591645 Add dismissal mechanism for contextual cards.
In the homepage, we should allow cards to be dismissed.

- Implement card flipping upon card long pressing.

Bug: 113783548
Test: robotests, visual
Change-Id: I2ddb498321ba5c5078d6944aa2ef32f1386bdb10
2018-11-13 14:46:44 +08:00

35 lines
1.0 KiB
Java

/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.homepage.contextualcards;
/**
* Data controller for {@link ContextualCard}.
*/
public interface ContextualCardController {
@ContextualCard.CardType
int getCardType();
void onPrimaryClick(ContextualCard card);
void onActionClick(ContextualCard card);
void onDismissed(ContextualCard card);
void setCardUpdateListener(ContextualCardUpdateListener listener);
}