Commit 441c688
[Clipboard] setData and getData implementations added (#76)
* [Clipboard] setData and getData implementations added
and also removed code for hasStrings, as this API is not present in documentation.
[Before] Clipboard.setData and Clipboard.getData feature was not implemented
[After] Naive implementation of clipboard shared only inside Flutter application
and only via Clipboard API. Such decision was done because of supporting partial
functionality on all profiles. CBHM API is supported only on mobile and currently
it is not possible to support it in other way.
Dart code below is able to set/get internal clipboard data:
ClipboardData cd = ClipboardData(text: 'some text');
Clipboard.setData(cd);
Future<ClipboardData?> d = Clipboard.getData(Clipboard.kTextPlain);
void dataCallback(ClipboardData? d) {
if (d != null) {
String? text = d.text;
if(text != null) {
print("Clipboard data $text");
}
}
}
d.then(dataCallback);
* [Clipboard] Fixes after review
* Removed unnecessary mutex
* Cleaned temporary logs1 parent 908c0ac commit 441c688
File tree
2 files changed
+61
-4
lines changed- shell/platform/tizen/channels
2 files changed
+61
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 219 | + | |
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
| |||
268 | 266 | | |
269 | 267 | | |
270 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
0 commit comments