Skip to content

Commit

Permalink
Add comment for isAdvancedMarkersAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
aednlaxer committed Dec 23, 2024
1 parent da14a73 commit c407fe1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6104,7 +6104,12 @@ public interface MapsApi {
*/
@NonNull
Boolean didLastStyleSucceed();

/**
* Returns true if this map supports advanced markers.
*
* This allows checking if the map supports advanced markers before
* attempting to use them.
*/
@NonNull
Boolean isAdvancedMarkersAvailable();
/** Clears the cache of tiles previously requseted from the tile provider. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2383,6 +2383,10 @@ class MapsApi {
}
}

/// Returns true if this map supports advanced markers.
///
/// This allows checking if the map supports advanced markers before
/// attempting to use them.
Future<bool> isAdvancedMarkersAvailable() async {
final String pigeonVar_channelName = 'dev.flutter.pigeon.google_maps_flutter_android.MapsApi.isAdvancedMarkersAvailable$pigeonVar_messageChannelSuffix';
final BasicMessageChannel<Object?> pigeonVar_channel = BasicMessageChannel<Object?>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ abstract class MapsApi {
/// is no way to return failures from map initialization.
bool didLastStyleSucceed();

/// Returns true if this map supports advanced markers.
///
/// This allows checking if the map supports advanced markers before
/// attempting to use them.
bool isAdvancedMarkersAvailable();

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

0 comments on commit c407fe1

Please sign in to comment.