Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0285] ShowConstantTBT Description Update #1581

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,42 +203,48 @@ public Image getNextTurnIcon() {
}

/**
* Sets a Fraction of distance till next maneuver
* Sets the distanceToManeuver.
*
* @param distanceToManeuver a Double value representing a Fraction of distance till next maneuver
* <p></p>
* <b>Notes: </b>Minvalue=0; Maxvalue=1000000000
* @param distanceToManeuver Distance (in meters) until next maneuver. May be used to calculate progress bar.
* {"num_min_value": 0.0, "num_max_value": 1000000000.0}
* @since SmartDeviceLink 2.0.0
*/
public ShowConstantTbt setDistanceToManeuver(Double distanceToManeuver) {
setParameters(KEY_MANEUVER_DISTANCE, distanceToManeuver);
return this;
}

/**
* Gets a Fraction of distance till next maneuver
* Gets the distanceToManeuver.
*
* @return Double -a Double value representing a Fraction of distance till next maneuver
* @return Float Distance (in meters) until next maneuver. May be used to calculate progress bar.
* {"num_min_value": 0.0, "num_max_value": 1000000000.0}
* @since SmartDeviceLink 2.0.0
*/
public Double getDistanceToManeuver() {
return getDouble(KEY_MANEUVER_DISTANCE);
}

/**
* Sets a Distance till next maneuver (starting from) from previous maneuver
* Sets the distanceToManeuverScale.
*
* @param distanceToManeuverScale a Double value representing a Distance till next maneuver (starting from) from previous maneuver
* <p></p>
* <b>Notes: </b>Minvalue=0; Maxvalue=1000000000
* @param distanceToManeuverScale Distance (in meters) from previous maneuver to next maneuver. May be used to calculate
* progress bar.
* {"num_min_value": 0.0, "num_max_value": 1000000000.0}
* @since SmartDeviceLink 2.0.0
*/
public ShowConstantTbt setDistanceToManeuverScale(Double distanceToManeuverScale) {
setParameters(KEY_MANEUVER_DISTANCE_SCALE, distanceToManeuverScale);
return this;
}

/**
* Gets a Distance till next maneuver (starting from) from previous maneuver
* Gets the distanceToManeuverScale.
*
* @return Double -a Double value representing a Distance till next maneuver (starting from) from previous maneuver
* @return Float Distance (in meters) from previous maneuver to next maneuver. May be used to calculate
* progress bar.
* {"num_min_value": 0.0, "num_max_value": 1000000000.0}
* @since SmartDeviceLink 2.0.0
*/
public Double getDistanceToManeuverScale() {
return getDouble(KEY_MANEUVER_DISTANCE_SCALE);
Expand Down