HERE Android SDK Developer's Guide

OnPitchFunction

The interface OnPitchFunction is a member of com.here.android.mpa.ar.ARController.

Interface Summary

public static abstract interface ARController.OnPitchFunction

Pitch function interface.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnPitchFunction
Methods

public abstract float onPitchFunction (float pitch)

Function applied to the current pitch

Interface Details

Pitch function interface.

It gives ability to apply a function to the current device's pitch/tilt value to change the resulting pitch curve.

Special consideration should be used when setAutoPitchEnabled(boolean, boolean) API is called. This method uses the current Map's value, which *may* be altered by the pitch function, thus effecting the animation.

Method Details

public abstract float onPitchFunction (float pitch)

Function applied to the current pitch

Parameters:

  • pitch

    An argument to the function of pitch representing default pitch value

Returns:

Result of client pitch function, a custom pitch value for LiveSight to use.