public static class StorageProperty.Builder extends Object
StorageProperty used to create a StorageProperty object.| 构造器 | 说明 |
|---|---|
Builder() |
Default constructor used to create a
Builder instance. |
Builder(StorageProperty property) |
A constructor used to create a
Builder instance based on a StorageProperty object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
StorageProperty |
build() |
Creates a
StorageProperty object for audio and video recording. |
StorageProperty.Builder |
setRecorderFd(FileDescriptor recorderFd) |
Sets a file descriptor object of the file to be written.
|
StorageProperty.Builder |
setRecorderFile(File recorderFile) |
Sets a file object to be written.
|
StorageProperty.Builder |
setRecorderMaxDurationMs(int recorderMaxDurationMs) |
Sets the maximum recording duration (in milliseconds).
|
StorageProperty.Builder |
setRecorderMaxFileSizeBytes(long recorderMaxFileSizeBytes) |
Sets the maximum file size (in bytes) of a recording session.
|
StorageProperty.Builder |
setRecorderPath(String recorderPath) |
Sets an output file path.
|
public Builder()
Builder instance.public Builder(StorageProperty property)
Builder instance based on a StorageProperty object.property - Indicates a StorageProperty object for audio and video recording.public StorageProperty build()
StorageProperty object for audio and video recording.StorageProperty object.public StorageProperty.Builder setRecorderMaxDurationMs(int recorderMaxDurationMs)
recorderMaxDurationMs - Indicates the maximum recording duration to set.Builder instance.public StorageProperty.Builder setRecorderMaxFileSizeBytes(long recorderMaxFileSizeBytes)
recorderMaxFileSizeBytes - Indicates the maximum file size to set.Builder instance.public StorageProperty.Builder setRecorderFd(FileDescriptor recorderFd)
recorderFd - Indicates a file descriptor object to set.Builder instance.public StorageProperty.Builder setRecorderFile(File recorderFile)
recorderFile - Indicates a file object to set.Builder instance.public StorageProperty.Builder setRecorderPath(String recorderPath)
recorderPath - Indicates an output file path to set.Builder instance.