Package com.amazonaws.ivs.broadcast
Class CameraSource.Options.Builder
java.lang.Object
com.amazonaws.ivs.broadcast.CameraSource.Options.Builder
- Enclosing class:
 CameraSource.Options
Use this class to build 
CameraSource.Options objects- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options objectsetEnableTorch(boolean enableTorch) Enable camera torch mode.setZoomFactor(float zoomFactor) Set camera zoom factor 
- 
Constructor Details
- 
Builder
public Builder()Instantiate a new builder with no options 
 - 
 - 
Method Details
- 
setZoomFactor
Set camera zoom factor- Parameters:
 zoomFactor- New zoom factor between 1.0f and max zoom factor supported by the device- Returns:
 - The builder for chaining calls
 
 - 
setEnableTorch
Enable camera torch mode. The torch will turn on once the camera is in use by the SDK, e.g. creating a preview or using it in a Session. Note that enabling torch will increase battery consumption and device thermals, especially on older, low-end devices.- Parameters:
 enableTorch- Whether to enable torch mode- Returns:
 - The builder for chaining calls
 
 - 
build
Builds the options object- Returns:
 - A new options object with the specific options set in the builder
 
 
 -