• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 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 android.support.car.input;
17 
18 /**
19  * Callbacks from the {@link CarEditable} to the Car IME. These methods should be called on
20  * the main thread.
21  */
22 public interface CarEditableListener {
23     /**
24      * Callback to indicate that the selection has changed on the current {@link CarEditable}. Note
25      * that selection changes include cursor movements.
26      * @param oldSelStart the old selection starting index
27      * @param oldSelEnd the old selection ending index
28      * @param newSelStart the new selection starting index
29      * @param newSelEnd the new selection ending index
30      */
onUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd)31     void onUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd);
32 }