Skip to content

Commit bbc4163

Browse files
authored
Update ios.md for setup title-subtitle API (#10)
1 parent 5d1a2d4 commit bbc4163

File tree

1 file changed

+5
-5
lines changed
  • articles/communication-services/how-tos/ui-library-sdk/includes/setup-title-subtitle

1 file changed

+5
-5
lines changed

articles/communication-services/how-tos/ui-library-sdk/includes/setup-title-subtitle/ios.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ ms.service: azure-communication-services
1010

1111
## Customize title and subtitle
1212

13-
To set and update call screen infoHeader `title` & `subtitle`, we have `CallScreenHeaderOptions` to configure and pass to `CallScreenOptions` by param `headerOptions`. The `title`, `Subtitle` in `CallScreenHeaderOptions` are optional parameters and `headerOptions` itself is optional as well. Default UI library title is displayed if `title` value isn't configured.
13+
To set and update call screen infoHeader `title` & `subtitle`, we have `CallScreenHeaderViewData` to configure and pass to `CallScreenOptions` by param `headerViewData`. The `title`, `Subtitle` in `CallScreenHeaderViewData` are optional parameters and `headerViewData` itself is optional as well. Default UI library title is displayed if `title` value isn't configured.
1414

1515
```swift
16-
var callScreenHeaderOptions = CallScreenHeaderOptions(
16+
var headerViewData = CallScreenHeaderViewData(
1717
title: "This is a custom InfoHeader",
1818
subtitle: "This is a custom subtitle")
1919
var callScreenOptions = CallScreenOptions(controlBarOptions: barOptions,
20-
headerOptions: callScreenHeaderOptions)
20+
headerViewData: headerViewData)
2121

2222
// Use any event from call composite to update title & subtitle when the call is in progress.
23-
callScreenHeaderOptions.title = "Custom updated title"
24-
callScreenHeaderOptions.subtitle = "Custom updated subtitle"
23+
headerViewData.title = "Custom updated title"
24+
headerViewData.subtitle = "Custom updated subtitle"
2525
```

0 commit comments

Comments
 (0)