Customizing the icon for the iOS CallKit UI
Below, we will using the example of setting a CallKitIcon
icon, to explain how to set the icon for the CallKit lock screen interface on iOS system .
- Place your icon file in the
ios/Runner/Assets.xcassets/
folder, as shown in the figure, with the file nameCallKitIcon.imageset
.
Tip
The icon should be square and have a transparent background.
- When calling
ZegoUIKitPrebuiltCallInvitationService.init
, configure theiOSNotificationConfig.systemCallingIconName
parameter with the file name (without the file extension).
Untitled
ZegoUIKitPrebuiltCallInvitationService().init(
...
notificationConfig: ZegoCallInvitationNotificationConfig(
iOSNotificationConfig: ZegoIOSNotificationConfig(
systemCallingIconName: 'CallKitIcon',
),
),
...
1