public class

ImagePreviewView

extends TextureView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.TextureView
       ↳ com.amazonaws.ivs.broadcast.ImagePreviewView

Class Overview

A view that will render a preview of either an ImageDevice, or the composited preview of the entire BroadcastSession.

Summary

[Expand]
Inherited Constants
From class android.view.View
Fields
protected final TextureView.SurfaceTextureListener surfaceTextureListener
[Expand]
Inherited Fields
From class android.view.View
Public Methods
synchronized void setMirrored(boolean isMirrored)
Flips the preview horizontally.
[Expand]
Inherited Methods
From class android.view.TextureView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Fields

protected final TextureView.SurfaceTextureListener surfaceTextureListener

Public Methods

public synchronized void setMirrored (boolean isMirrored)

Flips the preview horizontally. This will be true by default for the front facing camera, and false for everything else.

Parameters
isMirrored Whether this view should be mirrored horizontally.