# Print output for @column tags ?>
public
static
final
class
VibrationAttributes.Builder
extends Object
| java.lang.Object | |
| ↳ | android.os.VibrationAttributes.Builder |
Builder class for VibrationAttributes objects.
By default, all information is set to UNKNOWN.
Public constructors | |
|---|---|
Builder()
Constructs a new Builder with the defaults. |
|
Builder(VibrationAttributes vib)
Constructs a new Builder from a given VibrationAttributes. |
|
Public methods | |
|---|---|
VibrationAttributes
|
build()
Combines all of the attributes that have been set and returns a new
|
VibrationAttributes.Builder
|
setFlags(int flags, int mask)
Set flags |
VibrationAttributes.Builder
|
setUsage(int usage)
Sets the attribute describing the type of corresponding vibration. |
Inherited methods | |
|---|---|
public Builder ()
Constructs a new Builder with the defaults.
public Builder (VibrationAttributes vib)
Constructs a new Builder from a given VibrationAttributes.
| Parameters | |
|---|---|
vib |
VibrationAttributes: This value may be null. |
public VibrationAttributes build ()
Combines all of the attributes that have been set and returns a new
VibrationAttributes object.
| Returns | |
|---|---|
VibrationAttributes |
a new VibrationAttributes object
This value cannot be null. |
public VibrationAttributes.Builder setFlags (int flags, int mask)
Set flags
| Parameters | |
|---|---|
flags |
int: combination of flags to be set. |
mask |
int: Bit range that should be changed. |
| Returns | |
|---|---|
VibrationAttributes.Builder |
the same Builder instance.
This value cannot be null. |
public VibrationAttributes.Builder setUsage (int usage)
Sets the attribute describing the type of corresponding vibration.
| Returns | |
|---|---|
VibrationAttributes.Builder |
the same Builder instance.
This value cannot be null. |