Package com.amazonaws.ivs.broadcast
Class ImageDevice
- java.lang.Object
- 
- com.amazonaws.ivs.broadcast.Device
- 
- com.amazonaws.ivs.broadcast.ImageDevice
 
 
- 
- Direct Known Subclasses:
- SurfaceSource
 
 public abstract class ImageDevice extends Device Image and video input sources must conform to this interface
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classImageDevice.RotationUtility enum that defines common rotations by degree in radians.- 
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.DeviceDevice.Descriptor
 
- 
 - 
Constructor SummaryConstructors Constructor Description ImageDevice()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ImagePreviewViewgetPreviewView()Gets aImagePreviewViewthat will display a preview of this device's contents.abstract ImagePreviewViewgetPreviewView(BroadcastConfiguration.AspectMode aspectMode)abstract voidrotateOnConfigurationChanges(boolean enable)Enables/disables rotations of this ImageDevice when the physical device is rotated.abstract voidsetRotation(float rotation)Sets the rotation of the ImageDevice.voidsetRotation(ImageDevice.Rotation rotation)Sets the rotation of the ImageDevice.abstract booleanwillRotateOnConfigurationChanges()- 
Methods inherited from class com.amazonaws.ivs.broadcast.DevicegetDescriptor, getTag, isValid
 
- 
 
- 
- 
- 
Method Detail- 
setRotationpublic abstract void setRotation(float rotation) Sets the rotation of the ImageDevice.- Parameters:
- rotation- Rotation in radians
 
 - 
setRotationpublic void setRotation(ImageDevice.Rotation rotation) Sets the rotation of the ImageDevice.- Parameters:
- rotation- Rotation enum
 
 - 
getPreviewViewpublic abstract ImagePreviewView getPreviewView() Gets aImagePreviewViewthat will display a preview of this device's contents. Warning: Using manyImagePreviewViewsat once may result in performance degradation.- Throws:
- BroadcastException- If unable to get preview view.
 
 - 
rotateOnConfigurationChangespublic abstract void rotateOnConfigurationChanges(boolean enable) Enables/disables rotations of this ImageDevice when the physical device is rotated. When this is enabled, the image source will be rotated to match configuration changes. This is often useful with camera devices, for example. When this is disabled, the image source will not be rotated to match configuration changes. This is often useful for custom image sources or if the camera ought to be locked to a particular orientation to match the application.- Parameters:
- enable- Whether this device should rotate on configuration changes (e.g. when the physical device is rotated).
 
 - 
willRotateOnConfigurationChangespublic abstract boolean willRotateOnConfigurationChanges() - Returns:
- Whether this ImageDevice will rotate on configuration changes.
 
 - 
getPreviewViewpublic abstract ImagePreviewView getPreviewView(BroadcastConfiguration.AspectMode aspectMode) 
 
- 
 
-