Package com.indooratlas.android.sdk
Class IAOrientationRequest
- java.lang.Object
-
- com.indooratlas.android.sdk.IAOrientationRequest
-
- All Implemented Interfaces:
Parcelable
public final class IAOrientationRequest extends Object implements Parcelable
Class used to specify the sensitivity when requesting heading and orientation changes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<IAOrientationRequest>
CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description IAOrientationRequest(double heading, double orientation)
Constructor specifying the sensitivity for heading and orientation updates.protected
IAOrientationRequest(Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
double
getHeadingSensitivity()
Get heading update sensitivity in degrees.double
getOrientationSensitivity()
Get orientation update sensitivity in degrees.void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<IAOrientationRequest> CREATOR
-
-
Constructor Detail
-
IAOrientationRequest
public IAOrientationRequest(double heading, double orientation)
Constructor specifying the sensitivity for heading and orientation updates. Negative numbers means no updates are needed. And update is given when the quantity in question has changed by the specified amount.- Parameters:
heading
- Heading sensitivity in degrees.orientation
- Orientation sensitivity in degrees.
-
IAOrientationRequest
protected IAOrientationRequest(Parcel in)
-
-
Method Detail
-
getHeadingSensitivity
public double getHeadingSensitivity()
Get heading update sensitivity in degrees.- Returns:
- Sensitivity in degrees.
-
getOrientationSensitivity
public double getOrientationSensitivity()
Get orientation update sensitivity in degrees.- Returns:
- Sensitivity in degrees.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
-