Builder
class Builder
kotlin.Any | |
↳ | android.os.vibrator.HapticFeedbackRequest.Builder |
Builder for HapticFeedbackRequest
.
Summary
Public constructors | |
---|---|
Builder(request: HapticFeedbackRequest) Constructs a builder that is already populated with the fields from a given |
|
Constructs a new builder for |
Public methods | |
---|---|
HapticFeedbackRequest |
build() Builds a new |
HapticFeedbackRequest.Builder |
Sets the |
HapticFeedbackRequest.Builder |
Sets the |
Public constructors
Builder
Builder(request: HapticFeedbackRequest)
Constructs a builder that is already populated with the fields from a given HapticFeedbackRequest
.
Parameters | |
---|---|
request |
HapticFeedbackRequest: the request to create a new builder from. This value cannot be null . |
Builder
Builder(constant: Int)
Constructs a new builder for HapticFeedbackRequest
.
Public methods
build
fun build(): HapticFeedbackRequest
Builds a new HapticFeedbackRequest
from this builder object.
Return | |
---|---|
HapticFeedbackRequest |
This value cannot be null . |
setFlags
fun setFlags(flags: Int): HapticFeedbackRequest.Builder
Sets the HapticFeedbackConstants
flags for the haptic feedback request.
Parameters | |
---|---|
flags |
Int: Value is either 0 or a combination of android.view.HapticFeedbackConstants#FLAG_IGNORE_VIEW_SETTING , and android.view.HapticFeedbackConstants#FLAG_IGNORE_GLOBAL_SETTING |
Return | |
---|---|
HapticFeedbackRequest.Builder |
This value cannot be null . |
setUsage
fun setUsage(usage: Int): HapticFeedbackRequest.Builder
Sets the VibrationAttributes
usage for the haptic feedback request.
Return | |
---|---|
HapticFeedbackRequest.Builder |
This value cannot be null . |