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 |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR
|
int |
PARCELABLE_ELIDE_DUPLICATES
|
int |
PARCELABLE_WRITE_RETURN_VALUE
|
|
Public constructors |
SpeedBumpConfiguration(double permitsPerSecond, double maxPermitPool, long permitFillDelay)
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public constructors
SpeedBumpConfiguration
public SpeedBumpConfiguration (double permitsPerSecond,
double maxPermitPool,
long permitFillDelay)
Parameters |
permitsPerSecond |
double |
maxPermitPool |
double |
permitFillDelay |
long |
Public methods
describeContents
public int describeContents ()
equals
public boolean equals (Object object)
getAcquiredPermitsPerSecond
public double getAcquiredPermitsPerSecond ()
Returns the number of permitted actions that are acquired each second that the user has not
interacted with the SpeedBumpView
.
getMaxPermitPool
public double getMaxPermitPool ()
Returns the maximum number of permits that can be acquired when the user is idling.
getPermitFillDelay
public long getPermitFillDelay ()
Returns the delay time before when the permit pool has been depleted and when it begins to
refill.
hashCode
public int hashCode ()
toString
public String toString ()
writeToParcel
public void writeToParcel (Parcel desk,
int flags)
Parameters |
desk |
Parcel |
flags |
int |