Skip to content

Commit 2d238e0

Browse files
committed
Add changelog entry for feature-sendtab component
1 parent 9b33fae commit 2d238e0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/changelog.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ permalink: /changelog/
4949
* **feature-customtabs**
5050
* `CustomTabsToolbarFeature` now optionally takes `Window` as a parameter. It will update the status bar color to match the toolbar color.
5151

52+
* **feature-sendtab**
53+
* 🆕 New component for send tab use cases.
54+
55+
```kotlin
56+
val sendTabUseCases = SendTabUseCases(accountManager)
57+
58+
// Send to a particular device
59+
sendTabUseCases.sendToDeviceAsync("1234", TabData("Mozilla", "https://mozilla.org"))
60+
61+
// Send to all devices
62+
sendTabUseCases.sendToAllAsync(TabData("Mozilla", "https://mozilla.org"))
63+
64+
// Send multiple tabs to devices works too..
65+
sendTabUseCases.sendToDeviceAsync("1234", listof(tab1, tab2))
66+
sendTabUseCases.sendToAllAsync(listof(tab1, tab2))
67+
```
68+
69+
* **support-ktx**
70+
* Added `Collection.crossProduct` to retrieve the cartesian product of two `Collections`.
71+
5272
# 5.0.0
5373

5474
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v4.0.0...v5.0.0)

0 commit comments

Comments
 (0)