Configuring safe driving mode
Receive guidance about your surroundings based on your current location, without setting a destination or a route. Up to three nearby safety items are displayed at the top left of the screen.
TIP
Safe driving mode currently supports only some services, such as location, speed, and speeding alerts.
objc
// Start safe driving guidance
KNGuidance *guidance = [[KNSDK sharedInstance] sharedGuidance];
// Create the driving UI
KNNaviView *naviView = [[KNNaviView alloc] initWithGuidance:guidance trip:nil routeOption:routePriority avoidOptions:routeAvoidOption];
naviView.frame = self.bounds;
naviView.guideStateDelegate = self;
naviView.stateDelegate = self;
[naviView sndVolume:volume];
[self addSubview:naviView];