displaySearchResults

@AnyThread
fun displaySearchResults(@NonNull locations: List<MPLocation>): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.


@AnyThread
fun displaySearchResults(@NonNull locations: List<MPLocation>, animateCamera: Boolean): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

animateCamera

True if the camera should animate to the locations center, false to just move there


@AnyThread
fun displaySearchResults(@NonNull locations: List<MPLocation>, @Nullable readyListener: ReadyListener): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

readyListener

@AnyThread
fun displaySearchResults(    @NonNull locations: List<MPLocation>,     animateCamera: Boolean,     cameraPadding: Int): Boolean
@AnyThread
fun displaySearchResults(    @NonNull locations: List<MPLocation>,     animateCamera: Boolean,     cameraPadding: Int,     @Nullable readyListener: ReadyListener): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

animateCamera

True if the camera should animate to the locations center, false to just move there

cameraPadding

A padding value (in dp) between the given locations bounding box and the viewport


@AnyThread
fun displaySearchResults(    @NonNull locations: List<MPLocation>,     animateCamera: Boolean,     cameraPadding: Int,     showInfoWindow: Boolean): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

animateCamera

True if the camera should animate to the locations center, false to just move there

cameraPadding

A padding value (in dp) between the given locations bounding box and the viewport

showInfoWindow

True to show the info window if there is only one location in the list


@AnyThread
fun displaySearchResults(    @NonNull locations: List<MPLocation>,     animateCamera: Boolean,     cameraPadding: Int,     showInfoWindow: Boolean,     @Nullable googleMapCameraUpdate: CameraUpdate,     durationMs: Int,     googleMapCancelableCallback: GoogleMap.CancelableCallback): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

animateCamera

True if the camera should animate to the locations center, false to just move there

googleMapCameraUpdate

A CameraUpdate object. See CameraUpdate

durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

googleMapCancelableCallback

An optional callback to be notified from the Android UI thread when the animation stops. If the animation stops due to its natural completion, the callback will be notified with onFinish(). If the animation stops due to interruption by a later camera movement or a user gesture, onCancel() will be called. The callback should not attempt to move or animate the camera in its cancellation method. If a callback isn't required, leave it as null.


@AnyThread
fun displaySearchResults(    @NonNull locations: List<MPLocation>,     animateCamera: Boolean,     cameraPadding: Int,     showInfoWindow: Boolean,     @Nullable googleMapCameraUpdate: CameraUpdate,     durationMs: Int,     googleMapCancelableCallback: GoogleMap.CancelableCallback,     @Nullable readyListener: ReadyListener): Boolean

Use this method to display temporary locations, not points of interests location. Use clearMap to exit this state

Return

False if any of these errors happened: no context, no google map, no locations to show. True otherwise

Parameters

locations

The temporary locations.

animateCamera

True if the camera should animate to the locations center, false to just move there

cameraPadding

A padding value (in dp) between the given locations bounding box and the viewport

showInfoWindow

True to show the info window if there is only one location in the list

googleMapCameraUpdate

A CameraUpdate object. See CameraUpdate

durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

googleMapCancelableCallback

An optional callback to be notified from the Android UI thread when the animation stops. If the animation stops due to its natural completion, the callback will be notified with onFinish(). If the animation stops due to interruption by a later camera movement or a user gesture, onCancel() will be called. The callback should not attempt to move or animate the camera in its cancellation method. If a callback isn't required, leave it as null.

readyListener

An optional callback to be notified once the method is done (failed to run, end of camera animations, etc.)