SpeedBumpConfiguration

public final class SpeedBumpConfiguration
extends Object implements Parcelable

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


This class was deprecated in API level 30.
Speed bump configuration is no longer a support feature.

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

Added in API level 29
Deprecated in API level 30
public static final Creator<SpeedBumpConfiguration> CREATOR

Public constructors

SpeedBumpConfiguration

Added in API level 29
public SpeedBumpConfiguration (double permitsPerSecond, 
                double maxPermitPool, 
                long permitFillDelay)

Parameters
permitsPerSecond double

maxPermitPool double

permitFillDelay long

Public methods

describeContents

Added in API level 29
Deprecated in API level 30
public int describeContents ()

Returns
int

equals

Added in API level 29
Deprecated in API level 30
public boolean equals (Object object)

Parameters
object Object

Returns
boolean

getAcquiredPermitsPerSecond

Added in API level 29
Deprecated in API level 30
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

Added in API level 29
Deprecated in API level 30
public double getMaxPermitPool ()

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

Returns
double

getPermitFillDelay

Added in API level 29
Deprecated in API level 30
public long getPermitFillDelay ()

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

Returns
long

hashCode

Added in API level 29
Deprecated in API level 30
public int hashCode ()

Returns
int

toString

Added in API level 29
Deprecated in API level 30
public String toString ()

Returns
String

writeToParcel

Added in API level 29
Deprecated in API level 30
public void writeToParcel (Parcel desk, 
                int flags)

Parameters
desk Parcel

flags int