Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ await mapViewController.setMapColorScheme(MapColorScheme.dark);
## Support for Android Auto and Apple CarPlay
This plugin is compatible with both Android Auto and Apple CarPlay infotainment systems. For more details, please refer to the respective platform documentation:

- [Android Auto documentation](./ANDROIDAUTO.md)
- [CarPlay documentation](./CARPLAY.md)
- [Android Auto documentation](./doc/android-auto.md)
- [CarPlay documentation](./doc/carplay.md)

## Known issues

Expand Down
19 changes: 16 additions & 3 deletions dartdoc_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,20 @@ dartdoc:
"Image Registry":
markdown: doc/image-registry.md
name: Image Registry
categoryOrder: ["Navigation", "Navigation View", "Map View", "Image Registry"]
"Android Auto":
markdown: doc/android-auto.md
name: Android Auto
"Carplay":
markdown: doc/carplay.md
name: Carplay
categoryOrder:
[
"Navigation",
"Navigation View",
"Map View",
"Image Registry",
"Android Auto",
"Carplay",
]
showUndocumentedCategories: true
nodoc: ['**/*.g.dart']

nodoc: ["**/*.g.dart"]
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions lib/src/google_maps_auto_view_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import 'package:flutter/widgets.dart';
import '../google_navigation_flutter.dart';
import 'google_navigation_flutter_platform_interface.dart';

/// {@category Android Auto}
/// {@category Carplay}
class GoogleMapsAutoViewController {
GoogleMapsAutoViewController() {
GoogleMapsNavigationPlatform.instance.autoAPI.ensureAutoViewApiSetUp();
Expand Down
2 changes: 2 additions & 0 deletions lib/src/types/circles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import '../utils/color.dart';
/// Circle that has beed added to map.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
@immutable
class Circle {
/// Construct [Circle].
Expand Down
2 changes: 2 additions & 0 deletions lib/src/types/lat_lng.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import 'package:flutter/foundation.dart';
/// {@category Navigation}
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
@immutable
class LatLng {
/// Initializes a [LatLng] with the provided latitude and longitude values.
Expand Down
2 changes: 2 additions & 0 deletions lib/src/types/lat_lng_bounds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import '../../google_navigation_flutter.dart';
/// LatLngBounds bounds object.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
@immutable
class LatLngBounds {
/// Initialize LatLngBounds with the given southwest and northeast points.
Expand Down
2 changes: 2 additions & 0 deletions lib/src/types/markers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import '../../google_navigation_flutter.dart';
/// Marker that has beed added to the map.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
@immutable
class Marker {
/// Construct [Marker]
Expand Down
14 changes: 14 additions & 0 deletions lib/src/types/navigation_view_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class NavigationViewRecenterButtonClickedEvent {}
/// Map type.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
enum MapType {
/// No type set.
none,
Expand Down Expand Up @@ -76,6 +78,8 @@ enum NavigationForceNightMode {
/// Represents the camera position in a Google Maps view.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
class CameraPosition {
/// Creates a [CameraPosition] object with map centered
/// to the [target] with the given [bearing], [tilt] and [zoom] level.
Expand Down Expand Up @@ -123,6 +127,8 @@ class CameraPosition {
/// to specify the orientation of the camera.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
enum CameraPerspective {
/// A tilted perspective facing in the same direction as the user.
tilted,
Expand All @@ -134,6 +140,9 @@ enum CameraPerspective {
topDownNorthUp,
}

/// {@category Navigation}
/// {@category Android Auto}
/// {@category Carplay}
class CustomNavigationAutoEvent {
final String? event;
final Object? data;
Expand All @@ -144,6 +153,9 @@ class CustomNavigationAutoEvent {
String toString() => 'CustomNavigationAutoEvent(event: $event, data: $data)';
}

/// {@category Navigation}
/// {@category Android Auto}
/// {@category Carplay}
class AutoScreenAvailabilityChangedEvent {
final bool isAvailable;

Expand Down Expand Up @@ -347,6 +359,8 @@ enum CameraUpdateType {
/// the current position.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
class CameraUpdate {
CameraUpdate._(this.type);

Expand Down
2 changes: 2 additions & 0 deletions lib/src/types/polygons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import '../utils/color.dart';
/// Polygon that has beed added to map.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
@immutable
class Polygon {
/// Construct [Polygon].
Expand Down
2 changes: 2 additions & 0 deletions lib/src/types/polylines.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import '../utils/color.dart';
/// Polyline that has beed added to map.
/// {@category Navigation View}
/// {@category Map View}
/// {@category Android Auto}
/// {@category Carplay}
@immutable
class Polyline {
/// Construct [Polyline].
Expand Down
Loading