forked from googlemaps/react-native-navigation-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavViewController.h
More file actions
92 lines (87 loc) · 4.27 KB
/
NavViewController.h
File metadata and controls
92 lines (87 loc) · 4.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import <UIKit/UIKit.h>
#import "INavigationViewCallback.h"
#import "ObjectTranslationUtil.h"
@import GoogleNavigation;
NS_ASSUME_NONNULL_BEGIN
@interface NavViewController : UIViewController <GMSMapViewNavigationUIDelegate, GMSMapViewDelegate>
@property(weak, nonatomic) id<INavigationViewCallback> callbacks;
@property(nonatomic, assign) BOOL isNavigationEnabled;
typedef void (^RouteStatusCallback)(GMSRouteStatus routeStatus);
typedef void (^OnStringResult)(NSString *result);
typedef void (^OnBooleanResult)(BOOL result);
typedef void (^OnDictionaryResult)(NSDictionary *_Nullable result);
typedef void (^OnArrayResult)(NSArray *_Nullable result);
- (void)setStylingOptions:(nonnull NSDictionary *)stylingOptions;
- (void)getCameraPosition:(OnDictionaryResult)completionBlock;
- (void)getMyLocation:(OnDictionaryResult)completionBlock;
- (void)getUiSettings:(OnDictionaryResult)completionBlock;
- (void)isMyLocationEnabled:(OnBooleanResult)completionBlock;
- (void)moveCamera:(NSDictionary *)cameraPositionMap;
- (void)setTripProgressBarEnabled:(BOOL)isEnabled;
- (void)setReportIncidentButtonEnabled:(BOOL)isEnabled;
- (void)setNavigationUIEnabled:(BOOL)isEnabled;
- (void)setFollowingPerspective:(NSNumber *)index;
- (void)setNightMode:(NSNumber *)index;
- (void)setSpeedometerEnabled:(BOOL)isEnabled;
- (void)setSpeedLimitIconEnabled:(BOOL)isEnabled;
- (void)setZoomLevel:(NSNumber *)level;
- (void)setNavigationCallbacks:(id<INavigationViewCallback>)fn;
- (void)setIndoorEnabled:(BOOL)isEnabled;
- (void)setTrafficEnabled:(BOOL)isEnabled;
- (void)setCompassEnabled:(BOOL)isEnabled;
- (void)setMyLocationButtonEnabled:(BOOL)isEnabled;
- (void)setMyLocationEnabled:(BOOL)isEnabled;
- (void)setShowDestinationMarkersEnabled:(BOOL)isEnabled;
- (void)setShowTrafficLightsEnabled:(BOOL)isEnabled;
- (void)setShowStopSignsEnabled:(BOOL)isEnabled;
- (void)setRotateGesturesEnabled:(BOOL)isEnabled;
- (void)setScrollGesturesEnabled:(BOOL)isEnabled;
- (void)setScrollGesturesEnabledDuringRotateOrZoom:(BOOL)isEnabled;
- (void)setTiltGesturesEnabled:(BOOL)isEnabled;
- (void)setZoomGesturesEnabled:(BOOL)isEnabled;
- (void)setBuildingsEnabled:(BOOL)isEnabled;
- (void)setTrafficIncidentCardsEnabled:(BOOL)isEnabled;
- (void)setHeaderEnabled:(BOOL)isEnabled;
- (void)setFooterEnabled:(BOOL)isEnabled;
- (void)setRecenterButtonEnabled:(BOOL)isEnabled;
- (void)resetMinMaxZoomLevel;
- (void)animateCamera:(GMSCameraUpdate *)update;
- (void)setMapStyle:(GMSMapStyle *)mapStyle;
- (void)setMapType:(GMSMapViewType)mapType;
- (void)clearMapView;
- (void)addGroundOverlay:(NSDictionary *)overlayOptions result:(OnDictionaryResult)completionBlock;
- (void)addCircle:(NSDictionary *)circleOptions result:(OnDictionaryResult)completionBlock;
- (void)addMarker:(NSDictionary *)markerOptions result:(OnDictionaryResult)completionBlock;
- (void)addTextMarker:(NSDictionary *)textMarkerOptions result:(OnDictionaryResult)completionBlock;
- (void)moveMarker:(NSString *)markerId newPosition:(NSDictionary *)newPosition duration:(NSInteger)duration;
- (void)addPolygon:(NSDictionary *)polygonOptions result:(OnDictionaryResult)completionBlock;
- (void)addPolyline:(NSDictionary *)options result:(OnDictionaryResult)completionBlock;
- (GMSMapView *)mapView;
- (void)showRouteOverview;
- (void)removeMarker:(NSString *)markerId;
- (void)removePolyline:(NSString *)polylineId;
- (void)removePolygon:(NSString *)polygonId;
- (void)removeCircle:(NSString *)circleId;
- (void)removeGroundOverlay:(NSString *)overlayId;
- (BOOL)attachToNavigationSession:(GMSNavigationSession *)session;
- (void)onPromptVisibilityChange:(BOOL)visible;
- (void)setTravelMode:(GMSNavigationTravelMode)travelMode;
- (void)setPadding:(UIEdgeInsets)insets;
//- (void)removeNavigationListeners;
@end
NS_ASSUME_NONNULL_END