blob: 17191908aa27f7384ea93e0c732dc610922356c7 [file] [log] [blame]
Pavel Maltsevd644c872016-02-23 10:37:51 -08001/*
2 * Copyright (C) 2016 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 */
Pavel Maltsev1ecdd6c2016-03-02 16:33:44 -080016package android.car.cluster.renderer;
Pavel Maltsevd644c872016-02-23 10:37:51 -080017
18import android.annotation.SystemApi;
Pavel Maltsev1ecdd6c2016-03-02 16:33:44 -080019import android.annotation.UiThread;
Pavel Maltsev8cf86912016-04-01 18:01:51 -070020import android.car.navigation.CarNavigationInstrumentCluster;
Pavel Maltsevd644c872016-02-23 10:37:51 -080021import android.graphics.Bitmap;
22
23/**
24 * Contains methods specified for Navigation App renderer in instrument cluster.
25 *
Keun-young Parkf9215202016-10-10 12:34:08 -070026 * TODO: Consider to add methods to report time / distance to final destination. bug:32060070
Pavel Maltsevd644c872016-02-23 10:37:51 -080027 * @hide
28 */
29@SystemApi
Pavel Maltsev1ecdd6c2016-03-02 16:33:44 -080030@UiThread
Pavel Maltsevd644c872016-02-23 10:37:51 -080031public abstract class NavigationRenderer {
Pavel Maltsev8cf86912016-04-01 18:01:51 -070032 /**
33 * Returns properties of instrument cluster for navigation.
34 */
35 abstract public CarNavigationInstrumentCluster getNavigationProperties();
36
Pavel Maltsevd644c872016-02-23 10:37:51 -080037 abstract public void onStartNavigation();
38 abstract public void onStopNavigation();
Keun-young Park3388e782016-10-05 16:28:32 -070039 abstract public void onNextTurnChanged(int event, CharSequence eventName, int turnAngle,
40 int turnNumber, Bitmap image, int turnSide);
Pavel Maltseva928f132016-08-01 16:46:10 -070041 abstract public void onNextTurnDistanceChanged(int distanceMeters, int timeSeconds,
42 int displayDistanceMillis, int displayDistanceUnit);
Pavel Maltsevd644c872016-02-23 10:37:51 -080043}