StreetViewFlutterPlatform class
abstract
- Inheritance
-
- Object
- PlatformInterface
- StreetViewFlutterPlatform
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
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)
→ Widget
-
Returns a widget displaying the street view
-
dispose({required int viewId})
→ void
-
Dispose of whatever resources the
mapId
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.
-
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, {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.
-
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
-
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.
-
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
-
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