Package io.agora.rtc2.video
Class WatermarkOptions
java.lang.Object
io.agora.rtc2.video.WatermarkOptions
- Since:
- 4.6.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe area to display the watermark image in landscape mode.The area to display the watermark image in portrait mode.booleanWhether the watermark is visible in the local preview view: - `true`: (Default) The watermark is visible in the local preview view.intLayer order of the watermark image. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]int[]intboolean
-
Field Details
-
visibleInPreview
public boolean visibleInPreviewWhether the watermark is visible in the local preview view: - `true`: (Default) The watermark is visible in the local preview view. - `false`: The watermark is not visible in the local preview view. -
positionInLandscapeMode
The area to display the watermark image in landscape mode. See `Rectangle`. -
positionInPortraitMode
The area to display the watermark image in portrait mode. See `Rectangle`. -
zOrder
public int zOrderLayer order of the watermark image. The default value is 0.- Since:
- 4.6.0
-
-
Constructor Details
-
WatermarkOptions
public WatermarkOptions()
-
-
Method Details
-
getPositionInLandscapeMode
public int[] getPositionInLandscapeMode()- Returns:
- When the method call succeeds, it returns an integer array with four elements representing the x, y, width, and height of the watermark rectangle.
- Since:
- 4.6.0
-
getPositionInPortraitMode
public int[] getPositionInPortraitMode()- Returns:
- When the method call succeeds, it returns an integer array of four elements representing the x, y, width, and height of the watermark rectangle.
- Since:
- 4.6.0
-
isVisibleInPreview
public boolean isVisibleInPreview()- Returns:
- - `true`: The watermark is visible in the local video preview. - `false`: The watermark is not visible in the local video preview.
- Since:
- 4.6.0
-
getzOrder
public int getzOrder()- Returns:
- If the method call succeeds, returns the Z-order index of the watermark image.
- Since:
- 4.6.0
-