Browse Source

chore(docs): Document request focus method

Thibault Malbranche 4 years ago
parent
commit
ef5c36c88e
No account linked to committer's email address
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      docs/Reference.md

+ 9
- 1
docs/Reference.md View File

73
 - [`clearFormData`](Reference.md#clearFormData)
73
 - [`clearFormData`](Reference.md#clearFormData)
74
 - [`clearCache`](Reference.md#clearCache)
74
 - [`clearCache`](Reference.md#clearCache)
75
 - [`clearHistory`](Reference.md#clearHistory)
75
 - [`clearHistory`](Reference.md#clearHistory)
76
-
76
+- [`requestFocus`](Reference.md#requestFocus)
77
 ---
77
 ---
78
 
78
 
79
 # Reference
79
 # Reference
1111
 
1111
 
1112
 To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.
1112
 To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.
1113
 
1113
 
1114
+### `requestFocus()`
1115
+
1116
+```javascript
1117
+requestFocus();
1118
+```
1119
+
1120
+Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1121
+
1114
 ### `clearFormData()`
1122
 ### `clearFormData()`
1115
 (android only)
1123
 (android only)
1116
 
1124