tencent cloud

All product documents
Tencent Real-Time Communication
Android&iOS
Last updated: 2024-09-27 13:09:12
Android&iOS
Last updated: 2024-09-27 13:09:12

Description of the Feature

Conference (TUIRoomKit) supports the Text Watermark feature, allowing users to add custom text watermarks to conference to protect content copyright or convey specific information. Through the Text Watermark feature, users can display personal information, company names, or conference topics on the conference screen, enhancing content security and professionalism. This article will provide a detailed introduction to this feature and explain how to use it in the TUIRoomKit component.




Feature Integration

Enable Watermark

In TUIRoomKit, the Watermark feature is disabled by default. If you want to enable the Text Watermark feature, you can do so with the following code.
Android
iOS
ConferenceSession.sharedInstance().enableWaterMark();
ConferenceSession.sharedInstance.enableWaterMark()
Note:
Once enabled, the default watermark text will be Your userId (Your userName).

Set Watermark Text

In TUIRoomKit, you can customize the watermark text to meet your specific business needs. You can set your watermark text using the following code.
Android
iOS
ConferenceSession.sharedInstance().setWaterMarkText("yourWaterMarkText"); // Replace the string with the watermark content you need to set
ConferenceSession.sharedInstance.setWaterMarkText(waterMarkText: "yourWaterMarkText") // Replace the string with the watermark content you need to set

Feature customization

If the current UI does not meet your needs, you can modify the source code to achieve a satisfactory UI effect. To make it easier for you to customize the UI, an introduction to the text watermark-related files is provided here.
Android
iOS
You can modify the source code in the Android/tuiroomkit/src/main/java/com/tencent/cloud/tuikit/roomkit/view/page/widget/WaterMark directory to achieve a satisfactory UI effect. To make it easier for you to customize the UI, an introduction to the text watermark-related files is provided here.
// File Location: Android/tuiroomkit/src/main/java/com/tencent/cloud/tuikit/roomkit/view/page/widget/WaterMark

WaterMark // Directory related to text watermark views
├── TextWaterMarkView.java // Text watermark view
└── WaterMarkLineStyle.java // Text watermark style
You can modify the source code in the iOS/TUIRoomKit/Source/View/Page/Widget/WaterMark directory to achieve a satisfactory UI effect. To make it easier for you to customize the UI, an introduction to the text watermark-related files is provided here.
// File Location: iOS/TUIRoomKit/Source/View/Page/Widget/WaterMark

WaterMark // Directory related to text watermark views
├── WaterMarkLayer.swift // Text watermark view
└── WaterMarkLineStyle.swift // Text watermark style
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon