blob: 810f6e09ff7dc305550a1a156d5fd1c95981a435 [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 */
16package android.car.cluster;
17
18import android.annotation.SystemApi;
19import android.graphics.Bitmap;
20
21/**
22 * Contains methods specified for Navigation App renderer in instrument cluster.
23 *
24 * TODO: Consider to add methods to report time / distance to final destination.
25 * @hide
26 */
27@SystemApi
28public abstract class NavigationRenderer {
29 abstract public void onStartNavigation();
30 abstract public void onStopNavigation();
31 abstract public void onNextTurnChanged(int event, String road, int turnAngle, int turnNumber,
32 Bitmap image, int turnSide);
33 abstract public void onNextTurnDistanceChanged(int distanceMeters, int timeSeconds);
34}