@@ -53,11 +53,11 @@ import java.util.concurrent.CancellationException
5353 *
5454 * In the case, you are using it, do not call [ICameraCoroutineStreamer.startPreview] (or
5555 * [ICameraCallbackStreamer.stopPreview]) and [ICameraCoroutineStreamer.stopPreview] on application
56- * side. It will be handled by the [PreviewView ].
56+ * side. It will be handled by the [CameraPreviewView ].
5757 *
5858 * The [Manifest.permission.CAMERA] permission must be granted before using this view.
5959 */
60- class PreviewView @JvmOverloads constructor(
60+ class CameraPreviewView @JvmOverloads constructor(
6161 context : Context , attrs : AttributeSet ? = null , defStyle : Int = 0
6262) : FrameLayout(context, attrs, defStyle) {
6363 private val cameraViewfinder = CameraViewfinder (context, attrs, defStyle)
@@ -103,7 +103,7 @@ class PreviewView @JvmOverloads constructor(
103103 }
104104
105105 /* *
106- * The position of the [PreviewView ] within its container.
106+ * The position of the [CameraPreviewView ] within its container.
107107 */
108108 var position: Position
109109 get() = getPosition(cameraViewfinder.scaleType)
@@ -112,7 +112,7 @@ class PreviewView @JvmOverloads constructor(
112112 }
113113
114114 /* *
115- * The scale mode of the [PreviewView ] within its container.
115+ * The scale mode of the [CameraPreviewView ] within its container.
116116 */
117117 var scaleMode: ScaleMode
118118 get() = getScaleMode(cameraViewfinder.scaleType)
@@ -428,7 +428,7 @@ class PreviewView @JvmOverloads constructor(
428428
429429
430430 /* *
431- * A listener for the [PreviewView ].
431+ * A listener for the [CameraPreviewView ].
432432 */
433433 interface Listener {
434434 /* *
@@ -449,21 +449,21 @@ class PreviewView @JvmOverloads constructor(
449449 }
450450
451451 /* *
452- * Options for the position of the [PreviewView ] within its container.
452+ * Options for the position of the [CameraPreviewView ] within its container.
453453 */
454454 enum class Position (val value : Int ) {
455455 /* *
456- * The [PreviewView ] is positioned at the top of its container.
456+ * The [CameraPreviewView ] is positioned at the top of its container.
457457 */
458458 START (0 ),
459459
460460 /* *
461- * The [PreviewView ] is positioned in the center of its container.
461+ * The [CameraPreviewView ] is positioned in the center of its container.
462462 */
463463 CENTER (1 ),
464464
465465 /* *
466- * The [PreviewView ] is positioned in the bottom of its container.
466+ * The [CameraPreviewView ] is positioned in the bottom of its container.
467467 */
468468 END (2 );
469469
@@ -476,24 +476,24 @@ class PreviewView @JvmOverloads constructor(
476476 }
477477
478478 /* *
479- * Options for scaling the [PreviewView ] within its container.
479+ * Options for scaling the [CameraPreviewView ] within its container.
480480 */
481481 enum class ScaleMode (val value : Int ) {
482482 /* *
483- * Scale the [PreviewView ], maintaining the source aspect ratio, so it fills the entire
483+ * Scale the [CameraPreviewView ], maintaining the source aspect ratio, so it fills the entire
484484 * parent.
485485 *
486- * This may cause the [PreviewView ] to be cropped.
486+ * This may cause the [CameraPreviewView ] to be cropped.
487487 */
488488 FILL (0 ),
489489
490490 /* *
491- * Scale the [PreviewView ], maintaining the source aspect ratio, so it is entirely contained
491+ * Scale the [CameraPreviewView ], maintaining the source aspect ratio, so it is entirely contained
492492 * within the parent. The background area not covered by the viewfinder stream will be black
493- * or the background of the [PreviewView ].
493+ * or the background of the [CameraPreviewView ].
494494 *
495495 *
496- * Both dimensions of the [PreviewView ] will be equal or less than the corresponding
496+ * Both dimensions of the [CameraPreviewView ] will be equal or less than the corresponding
497497 * dimensions of its parent.
498498 */
499499 FIT (1 );
0 commit comments