File tree Expand file tree Collapse file tree
programming/javascript/api-reference Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 push :
99 branches :
1010 - main
11- # - preview
11+ - preview
1212
1313 # Allows you to run this workflow manually from the Actions tab
1414 workflow_dispatch :
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ permalink: /programming/javascript/api-reference/cameraview.html
4141| [ setTipVisible] ( #setTipVisible ) | Controls the visibility of the tip message box on the screen. |
4242| [ isTipVisible] ( #isTipVisible ) | Checks whether the tip message box is currently visible. |
4343| [ updateTipMessage] ( #updateTipMessage ) | Updates the message displayed in the tip message box. |
44+ | [ setPowerByMessageVisible] ( #setPowerByMessageVisible ) | Sets the visibility of the ` Powered by Dynamsoft ` message. |
45+ | [ isPowerByMessageVisible] ( #isPowerByMessageVisible ) | Checks if the ` Powered by Dynamsoft ` message is currently visible. |
4446
4547## createInstance
4648
@@ -699,3 +701,49 @@ None.
699701``` javascript
700702cameraView .updateTipMessage (' Hold the phone closer.' );
701703```
704+
705+ ## setPowerByMessageVisible
706+
707+ Sets the visibility of the ` Powered by Dynamsoft ` message. This can be used to show or hide the message.
708+
709+ ``` typescript
710+ setPowerByMessageVisible (visible : boolean ): void ;
711+ ```
712+
713+ ** Parameters**
714+
715+ ` visible ` : boolean indicating whether the message should be visible (` true ` ) or not (` false ` ).
716+
717+ ** Return value**
718+
719+ None.
720+
721+ ** Code Snippet**
722+
723+ ``` javascript
724+ // Hide the "Powered by Dynamsoft" message.
725+ cameraView .setPowerByMessageVisible (false );
726+ ```
727+
728+ ## isPowerByMessageVisible
729+
730+ Checks if the ` Powered by Dynamsoft ` message is currently visible.
731+
732+ ``` typescript
733+ isPowerByMessageVisible (): boolean ;
734+ ```
735+
736+ ** Parameters**
737+
738+ None.
739+
740+ ** Return value**
741+
742+ Boolean indicating whether the message is visible (` true ` ) or not (` false ` ).
743+
744+ ** Code Snippet**
745+
746+ ``` javascript
747+ const isVisible = cameraView .isPowerByMessageVisible ();
748+ console .log (isVisible);
749+ ```
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ let imgItem = new Dynamsoft.ImageDrawingItem(
6969 true ,
7070 3
7171);
72- drawingLayer .addDrawingItem ( imgItem);
72+ drawingLayer .addDrawingItems ([ imgItem] );
7373```
7474
7575** See also**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ let lineItem = new Dynamsoft.DCE.LineDrawingItem(
5555 }
5656 }
5757);
58- drawingLayer .addDrawingItem ( lineItem);
58+ drawingLayer .addDrawingItems ([ lineItem] );
5959```
6060
6161** See also**
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ let quadItem = new Dynamsoft.DCE.QuadDrawingItem(
5959 }]
6060 }
6161);
62- drawingLayer .addDrawingItem ( quadItem);
62+ drawingLayer .addDrawingItems ([ quadItem] );
6363```
6464
6565** See also**
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ let rectItem = new Dynamsoft.DCE.RectDrawingItem(
4949 height: 500
5050 }
5151);
52- drawingLayer .addDrawingItem ( rectItem);
52+ drawingLayer .addDrawingItems ([ rectItem] );
5353```
5454
5555** See also**
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ let textItem = new Dynamsoft.DCE.TextDrawingItem(
5757 },
5858 3
5959);
60- drawingLayer .addDrawingItem ( textItem);
60+ drawingLayer .addDrawingItems ([ textItem] );
6161```
6262
6363** See also**
You can’t perform that action at this time.
0 commit comments