Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

SpeedBumpConfiguration

public final class SpeedBumpConfiguration
extends Object implements Parcelable

java.lang.Object
   ↳ android.car.settings.SpeedBumpConfiguration


A configuration struct that holds information for tweaking SpeedBump settings.

Summary

Inherited constants

Fields

public static final Creator<SpeedBumpConfiguration> CREATOR

Public constructors

SpeedBumpConfiguration(double permitsPerSecond, double maxPermitPool, long permitFillDelay)

Public methods

int describeContents()
boolean equals(Object object)
double getAcquiredPermitsPerSecond()

Returns the number of permitted actions that are acquired each second that the user has not interacted with the SpeedBumpView.

double getMaxPermitPool()

Returns the maximum number of permits that can be acquired when the user is idling.

long getPermitFillDelay()

Returns the delay time before when the permit pool has been depleted and when it begins to refill.

int hashCode()
String toString()
void writeToParcel(Parcel desk, int flags)

Inherited methods

Fields

CREATOR

public static final Creator<SpeedBumpConfiguration> CREATOR

Public constructors

SpeedBumpConfiguration

public SpeedBumpConfiguration (double permitsPerSecond, 
                double maxPermitPool, 
                long permitFillDelay)

Parameters
permitsPerSecond double

maxPermitPool double

permitFillDelay long

Public methods

describeContents

public int describeContents ()

Returns
int

equals

public boolean equals (Object object)

Parameters
object Object

Returns
boolean

getAcquiredPermitsPerSecond

public double getAcquiredPermitsPerSecond ()

Returns the number of permitted actions that are acquired each second that the user has not interacted with the SpeedBumpView.

Returns
double

getMaxPermitPool

public double getMaxPermitPool ()

Returns the maximum number of permits that can be acquired when the user is idling.

Returns
double

getPermitFillDelay

public long getPermitFillDelay ()

Returns the delay time before when the permit pool has been depleted and when it begins to refill.

Returns
long

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel desk, 
                int flags)

Parameters
desk Parcel

flags int