Skip to content

Commit c407fe1

Browse files
committed
Add comment for isAdvancedMarkersAvailable
1 parent da14a73 commit c407fe1

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Messages.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6104,7 +6104,12 @@ public interface MapsApi {
61046104
*/
61056105
@NonNull
61066106
Boolean didLastStyleSucceed();
6107-
6107+
/**
6108+
* Returns true if this map supports advanced markers.
6109+
*
6110+
* This allows checking if the map supports advanced markers before
6111+
* attempting to use them.
6112+
*/
61086113
@NonNull
61096114
Boolean isAdvancedMarkersAvailable();
61106115
/** Clears the cache of tiles previously requseted from the tile provider. */

packages/google_maps_flutter/google_maps_flutter_android/lib/src/messages.g.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,6 +2383,10 @@ class MapsApi {
23832383
}
23842384
}
23852385

2386+
/// Returns true if this map supports advanced markers.
2387+
///
2388+
/// This allows checking if the map supports advanced markers before
2389+
/// attempting to use them.
23862390
Future<bool> isAdvancedMarkersAvailable() async {
23872391
final String pigeonVar_channelName = 'dev.flutter.pigeon.google_maps_flutter_android.MapsApi.isAdvancedMarkersAvailable$pigeonVar_messageChannelSuffix';
23882392
final BasicMessageChannel<Object?> pigeonVar_channel = BasicMessageChannel<Object?>(

packages/google_maps_flutter/google_maps_flutter_android/pigeons/messages.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ abstract class MapsApi {
709709
/// is no way to return failures from map initialization.
710710
bool didLastStyleSucceed();
711711

712+
/// Returns true if this map supports advanced markers.
713+
///
714+
/// This allows checking if the map supports advanced markers before
715+
/// attempting to use them.
712716
bool isAdvancedMarkersAvailable();
713717

714718
/// Clears the cache of tiles previously requseted from the tile provider.

0 commit comments

Comments
 (0)