You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/ui-library-sdk/includes/pip/android.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ For more information, see the [open-source Android UI Library](https://github.co
12
12
13
13
### Picture-in-picture setup
14
14
15
-
To enable multitasking and picture-in-picture, use `CallCompositeBuilder.multitasking` to set `CallCompositeMultitaskingOptions` with `enableMultitasking` and `enableSystemPiPWhenMultitasking` constructor parameters.
15
+
To enable multitasking and picture-in-picture, use `CallCompositeBuilder.multitasking` to set `CallCompositeMultitaskingOptions` with `enableMultitasking` and `enableSystemPictureInPictureWhenMultitasking` constructor parameters.
16
16
17
17
#### [Kotlin](#tab/kotlin)
18
18
@@ -38,33 +38,36 @@ The **Back** button appears when `enableMultitasking` is set to `true`.
38
38
39
39
:::image type="content" source="media/android-call-screen.png" alt-text="Screenshot of the Android call screen with the Back button visible.":::
40
40
41
-
When you turn on multitasking for `CallComposite`, the call activity starts in a dedicated task. In the task history, the user sees two screens: one for the app's activity and one for Communication Services call activity.
41
+
When user taps back button Calling UI is hidden and, if configured, Picture-in-Picture view is displayed.
42
42
43
-
#### [Kotlin](#tab/kotlin)
43
+
When multitasking is ON for `CallComposite`, the call activity starts in a dedicated task. In the task history, the user sees two screens: one for the app's activity and one for Communication Services call activity.
44
+
45
+
-----
44
46
47
+
To enter multitasking programmatically and if configured display Picture-in-Picture, call the `sendToBackground` method.
let callComposite =CallComposite(withOptions: callCompositeOptions)
26
26
```
@@ -29,14 +29,21 @@ The **Back** button appears when `enableMultitasking` is set to `true`.
29
29
30
30
:::image type="content" source="media/ios-call-screen.png" alt-text="Screenshot of the iOS call screen with the Back button visible.":::
31
31
32
-
To open the call UI, the user opens a call activity programmatically or by selecting the notification on the top bar. To reopen the UI programmatically, the app needs to preserve a reference to `CallComposite` and execute the `displayCallCompositeIfWasHidden` method.
32
+
33
+
When user taps back button Calling UI is hidden and, if configured, Picture-in-Picture view is displayed.
34
+
35
+
-----
36
+
37
+
To enter or exit multitasking programmatically, use `isHidden` property:
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/ui-library-sdk/picture-in-picture.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ While a user is on a call, a full-screen UI can prevent the user from multitaski
22
22
23
23
This article shows you how to turn on picture-in-picture in the Azure Communication Services UI Library. The picture-in-picture feature is system provided and is subject to feature support on the device, including CPU load, RAM availability, and battery state.
0 commit comments