blob: 5112eafdac9b1b70092a21bf70443ba2b451587d [file] [log] [blame]
Adam Cohend9162062020-03-24 16:35:35 -07001/*
2 * Copyright (C) 2020 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
17package com.android.launcher3;
18
19import android.graphics.PointF;
20import android.view.View;
21
22public interface Reorderable {
23
24 /**
25 * Set the offset related to reorder hint and "bounce" animations
26 */
27 void setReorderOffset(float x, float y);
28
29 void getReorderOffset(PointF offset);
30
31 /**
32 * Set the scale related to reorder hint and "bounce" animations
33 */
34 void setReorderScale(float scale);
35 float getReorderScale();
36
37 /**
38 * Get the com.android.view related to this object
39 */
40 View getView();
41}