This RPC is used to update the user with navigation information for the constantly shown screen (base screen), but also for the alert maneuver screen.
@since SmartDeviceLink 2.0
Convenience init to create navigation directions
- (nonnull instancetype)
initWithNavigationText1:(nullable NSString *)navigationText1
navigationText2:(nullable NSString *)navigationText2
eta:(nullable NSString *)eta
timeToDestination:(nullable NSString *)timeToDestination
totalDistance:(nullable NSString *)totalDistance
turnIcon:(nullable SDLImage *)turnIcon
nextTurnIcon:(nullable SDLImage *)nextTurnIcon
distanceToManeuver:(double)distanceToManeuver
distanceToManeuverScale:(double)distanceToManeuverScale
maneuverComplete:(BOOL)maneuverComplete
softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons;
init(navigationText1: String?, navigationText2: String?, eta: String?, timeToDestination: String?, totalDistance: String?, turnIcon: SDLImage?, nextTurnIcon: SDLImage?, distanceToManeuver: Double, distanceToManeuverScale: Double, maneuverComplete: Bool, softButtons: [SDLSoftButton]?)
The first line of text in a multi-line overlay screen
The second line of text in a multi-line overlay screen
Estimated Time of Arrival time at final destination
The amount of time needed to reach the final destination
The distance to the final destination
An icon to show with the turn description
An icon to show with the next turn description
Distance (in meters) until next maneuver.
Distance (in meters) from previous maneuver to next maneuver.
If and when a maneuver has completed while an AlertManeuver is active, the app must send this value set to TRUE in order to clear the AlertManeuver overlay. If omitted the value will be assumed as FALSE
Three dynamic SoftButtons available (first SoftButton is fixed to “Turns”)
An SDLShowConstantTBT object
The first line of text in a multi-line overlay screen.
Optional, Max length 500 chars
@property (nonatomic, strong, nullable) NSString *navigationText1;
var navigationText1: String? { get set }
The second line of text in a multi-line overlay screen.
Optional, 1 - 500 chars
@property (nonatomic, strong, nullable) NSString *navigationText2;
var navigationText2: String? { get set }
Estimated Time of Arrival time at final destination
Optional, 1 - 500 chars
@property (nonatomic, strong, nullable) NSString *eta;
var eta: String? { get set }
The amount of time needed to reach the final destination
Optional, 1 - 500 chars
@property (nonatomic, strong, nullable) NSString *timeToDestination;
var timeToDestination: String? { get set }
The distance to the final destination
Optional, 1 - 500 chars
@property (nonatomic, strong, nullable) NSString *totalDistance;
var totalDistance: String? { get set }
An icon to show with the turn description
Optional
See
SDLImage@property (nonatomic, strong, nullable) SDLImage *turnIcon;
var turnIcon: SDLImage? { get set }
An icon to show with the next turn description
Optional
See
SDLImage@property (nonatomic, strong, nullable) SDLImage *nextTurnIcon;
var nextTurnIcon: SDLImage? { get set }
Distance (in meters) until next maneuver. May be used to calculate progress bar.
Optional, Float, 0 - 1,000,000,000
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *distanceToManeuver;
var distanceToManeuver: (NSNumber & SDLFloat)? { get set }
Distance (in meters) from previous maneuver to next maneuver. May be used to calculate progress bar.
Optional, Float, 0 - 1,000,000,000
@property (nonatomic, strong, nullable) NSNumber<SDLFloat> *distanceToManeuverScale;
var distanceToManeuverScale: (NSNumber & SDLFloat)? { get set }
If and when a maneuver has completed while an AlertManeuver is active, the app must send this value set to TRUE in order to clear the AlertManeuver overlay. If omitted the value will be assumed as FALSE.
Optional
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *maneuverComplete;
var maneuverComplete: (NSNumber & SDLBool)? { get set }
Three dynamic SoftButtons available (first SoftButton is fixed to “Turns”). If omitted on supported displays, the currently displayed SoftButton values will not change.
Optional, Array length 0 - 3
See
SDLSoftButton@property (nonatomic, strong, nullable) NSArray<SDLSoftButton *> *softButtons;
var softButtons: [SDLSoftButton]? { get set }