Skip to content

Commit 1375bf2

Browse files
committed
readme is improved
1 parent 8ffde60 commit 1375bf2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ const informationField={
217217

218218
````
219219

220+
When ```useGlobalInputApp``` is invoked for the first time, the module will start to initialize itself. In this phase, ```mobile.isLoading``` is set to true, and ```<mobile.ConnectQR/>``` displays a loading symbol. After the initialization is completed, if the application is ready to accept connection, ```mobile.isReady``` is set to true, and ```<mobile.ConnectQR/>``` displays an encrypted QR Code. When a mobile app has connected to your application, ```mobile.isConnected``` is set to true, and ```<mobile.ConnectQR/>``` displays nothing. Those variables are useful if you would like to control what to display during different phases:
221+
```JavaScript
222+
{mobile.isConnected && (<>
223+
<h1>Mobile Connected</h1>
224+
<div>Please operate on your mobile to provide your credential!</div>
225+
</>)}
226+
```
227+
228+
220229
Finally, the examples in the [website](https://globalinput.co.uk/), and tests in the [test project](https://github.com/global-input/test-global-input-app-libs) contain more information about various use cases that you can implement in your Typescript/JavaScript applications.
221230

222231
## On Mobile App Side
@@ -243,15 +252,7 @@ You can also send messages to the device application, responding to the events g
243252
```
244253
There are two input parameters required for calling ```mobileConnector.sendValue()``` function: the first one identifies the target element that the value is being sent to, while the second parameter holds the value needs to be sent across.
245254
246-
## More Details
247255
248-
When ```useGlobalInputApp``` is invoked for the first time, the module will start to initialize itself. In this phase, ```mobile.isLoading``` is set to true, and ```<mobile.ConnectQR/>``` displays a loading symbol. After the initialization is completed, if the application is ready to accept connection, ```mobile.isReady``` is set to true, and ```<mobile.ConnectQR/>``` displays an encrypted QR Code. When a mobile app has connected to your application, ```mobile.isConnected``` is set to true, and ```<mobile.ConnectQR/>``` displays nothing. Those variables are useful if you would like to control what to display during different phases:
249-
```JavaScript
250-
{mobile.isConnected && (<>
251-
<h1>Mobile Connected</h1>
252-
<div>Please operate on your mobile to provide your credential!</div>
253-
</>)}
254-
```
255256
256257
257258

0 commit comments

Comments
 (0)