StreetViewFlutterPlatform class
abstract
- Inheritance
-
- Object
- PlatformInterface
- StreetViewFlutterPlatform
Methods
-
animateTo(int viewId, {StreetViewPanoramaCamera? camera, int? duration})
→ Future<void>
-
Animate camera to a given position over a specified duration.
-
buildView(Map<String, dynamic> creationParams, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers, PlatformViewCreatedCallback onPlatformViewCreated, {int? viewId})
→ Widget
-
Returns a widget displaying the street view
-
deactivate(int viewId)
→ void
-
FlutterGoogleStreetView is deactivated
-
dispose(int viewId)
→ void
-
Dispose of whatever resources the
viewId
is holding on to.
-
getLocation(int viewId)
→ Future<StreetViewPanoramaLocation?>
-
Return position of current panorama and information of near panoramas
-
getPanoramaCamera(int viewId)
→ Future<StreetViewPanoramaCamera>
-
Return camera setting, bearing, tilt and zoom.
-
init(int viewId)
→ Future
-
Initializes the platform interface with
id
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onCameraChange({required int viewId})
→ Stream<CameraChangeEvent>
-
The Camera change.
-
onCloseClick({required int viewId})
→ Stream<CloseClickEvent>
-
The Close was clicked.
Web only
-
onMarkerTap({required int viewId})
→ Stream<MarkerTapEvent>
-
A Marker has been tapped.
-
onPanoramaChange({required int viewId})
→ Stream<PanoramaChangeEvent>
-
The Panorama change.
-
onPanoramaClick({required int viewId})
→ Stream<PanoramaClickEvent>
-
The Panorama was clicked.
-
onPanoramaLongClick({required int viewId})
→ Stream<PanoramaLongClickEvent>
-
The Panorama was long clicked.
-
orientationToPoint(int viewId, {required StreetViewPanoramaOrientation orientation})
→ Future<Point<num>>
-
Returns a screen location that corresponds to an orientationStreetViewPanoramaOrientation.
-
pointToOrientation(int viewId, {Point<num>? point})
→ Future<StreetViewPanoramaOrientation>
-
Return the orientationStreetViewPanoramaOrientation that corresponds to a screen location.
-
setAddressControl(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using address control or not.
Web only
-
setAddressControlOptions(int viewId, ControlPosition pos)
→ Future<void>
-
Sets address control display position.
Web only
-
setDisableDefaultUI(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using all default UI or not.
Web only
-
setDisableDoubleClickZoom(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using zoom on double click or not.
Web only
-
setEnableCloseButton(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using close button or not.
Web only
-
setFullscreenControl(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using fullscreen control or not.
Web only
-
setFullscreenControlOptions(int viewId, ControlPosition pos)
→ Future<void>
-
Sets fullscreen control display position.
Web only
-
setLinksControl(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using link control or not.
Web only
-
setMotionTracking(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using motion tracking or not.
Web only
-
setMotionTrackingControl(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using motion tracking control or not.
Web only
-
setMotionTrackingControlOptions(int viewId, ControlPosition pos)
→ Future<void>
-
Sets motion tracking control display position.
Web only
-
setPanControl(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using pan control or not.
Web only
-
setPanControlOptions(int viewId, ControlPosition pos)
→ Future<void>
-
Sets pan control display position.
Web only
-
setPanningGesturesEnabled(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using panning gesture or not.
-
setPosition(int viewId, {LatLng? position, String? panoId, int? radius, StreetViewSource? source})
→ Future<void>
-
Sets panorama by given location
-
setScrollwheel(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using scrollwheel zooming or not.
Web only
-
setStreetNamesEnabled(int viewId, bool enable)
→ Future<void>
-
Sets street view to display street name or not.
-
setUserNavigationEnabled(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow moving to another panorama.
-
setVisible(int viewId, bool enable)
→ Future<void>
-
Sets street view is visible.
Web only
-
setZoomControl(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using zoom control or not.
Web only
-
setZoomControlOptions(int viewId, ControlPosition pos)
→ Future<void>
-
Sets zoom control display position.
Web only
-
setZoomGesturesEnabled(int viewId, bool enable)
→ Future<void>
-
Sets street view to allow using zoom gestures or not.
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateMarkers(MarkerUpdates markerUpdates, {required int viewId})
→ Future<void>
-
Updates marker configuration.
-
updateStreetViewOptions(Map<String, dynamic> optionsUpdate, {required int viewId})
→ Future
-
Updates configuration options of the street view user interface.
Static Properties
-
instance
↔ StreetViewFlutterPlatform
-
Platform-specific plugins should set this with their own platform-specific
class that extends
UrlLauncherPlatform
when they register themselves.
getter/setter pair