public static class AudioStreamProperty.Builder extends Object
AudioStreamProperty instance.| 构造器 | 说明 |
|---|---|
Builder() |
A constructor used to create a
Builder instance. |
Builder(AudioStreamProperty asp) |
Creates a
Builder instance based on an existing AudioStreamProperty instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AudioStreamProperty |
build() |
Creates an
AudioStreamProperty instance. |
AudioStreamProperty.Builder |
isTactileChannelClosed(boolean closed) |
Opens or closes the audio tactile channel.
|
AudioStreamProperty.Builder |
withContentType(AudioStreamInfo.ContentType contentType) |
Sets the type of audio stream content.
|
AudioStreamProperty.Builder |
withStreamFlags(AudioStreamInfo.AudioStreamFlag... flags) |
Sets audio stream flags.
|
AudioStreamProperty.Builder |
withStreamUsage(AudioStreamInfo.StreamUsage usage) |
Sets the audio stream usage type.
|
public Builder()
Builder instance.public Builder(AudioStreamProperty asp)
Builder instance based on an existing AudioStreamProperty instance.asp - Indicates the existing AudioStreamProperty instance used to create the new
AudioStreamProperty instance.public AudioStreamProperty build()
AudioStreamProperty instance.AudioStreamProperty instance.public AudioStreamProperty.Builder withStreamUsage(AudioStreamInfo.StreamUsage usage)
usage - Indicates the audio stream usage type to set.Builder instance.public AudioStreamProperty.Builder withContentType(AudioStreamInfo.ContentType contentType)
contentType - Indicates the content type to set.Builder instance.public AudioStreamProperty.Builder withStreamFlags(AudioStreamInfo.AudioStreamFlag... flags)
You can set multiple flags at a time.
flags - Indicates the audio stream flags to set.Builder instance.public AudioStreamProperty.Builder isTactileChannelClosed(boolean closed)
closed - Specifies whether to close the channel. The value true indicates that the tactile
channel will be closed, and false indicates the opposite case.Builder instance.