public abstract class JumpUpdateReceiver
extends java.lang.Object
Constructor and Description |
---|
JumpUpdateReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
addField(Options.FieldOptions fo,
Options.Unit u)
Add a field to listen for updates to.
|
java.util.List<android.util.Pair<Options.FieldOptions,Options.Unit>> |
getFields()
Returns the fields with units that this JumpUpdateReceiver instance is listening for
|
abstract void |
jumpEnded()
This method is called when a Jump Ends
|
abstract void |
jumpStarted(Marker dip,
double startPlannedHeading)
This method is called when a Jump Starts
|
void |
removeField(Options.FieldOptions fo,
Options.Unit u)
Remove a field to the list of fields to give updates to.
|
abstract void |
updateField(Options.FieldOptions fo,
Options.Unit u,
java.lang.String val)
This method is called when an update has been received for a field
this receiver has subscribed to.
|
abstract void |
updatePlannedJumpHeading(double heading)
This method will be called when the planned jumper heading is changed, due to a planned turn
|
public void addField(Options.FieldOptions fo, Options.Unit u)
fo
- - the field to be notified about (ex. FieldOptions.ALTITUDE)u
- - the unit to use for that field (ex. Unit.FEET_AGL)public void removeField(Options.FieldOptions fo, Options.Unit u)
fo
- - the field to be notified about (ex. FieldOptions.ALTITUDE)u
- - the unit to use for that field (ex. Unit.FEET_AGL)public java.util.List<android.util.Pair<Options.FieldOptions,Options.Unit>> getFields()
public abstract void jumpStarted(Marker dip, double startPlannedHeading)
dip
- - the primary DIP markerpublic abstract void jumpEnded()
public abstract void updateField(Options.FieldOptions fo, Options.Unit u, java.lang.String val)
fo
- - the field that's value was updatedval
- - the string value of the field without the units stringpublic abstract void updatePlannedJumpHeading(double heading)