phoneNumber (required) | The phone number to call when the phone channel is selected. Must be a valid phone number. For more information, see Apple’s documentation on phone links. |
delegate (required) | An object that implements ASAPPChannelDelegate . |
title (optional) | A title (also called the “Chat Instead header title”) which is displayed at the top of the Chat Instead UI. (See Customization) |
image (optional) | A UI Image that will override the default image for the chat channel. (See Customization) |
ASAPPChannelDelegate
requires:
didSelectASAPPChatChannel()
.
ASAPPChatInsteadViewController
as early as possible for the best user experience.func shouldOpenChannel(_ channel: ASAPPChannel) -> Bool
and returning false.
chatInsteadViewController
instance by using:
chatInsteadViewController
instance is not supported and will result in unexpected behavior..popover
presentation style and set both the sourceView and sourceRect properties following Apple’s conventions:
modalPresentationStyle
to .popover
and forget to set sourceView
and sourceRect
, the application will crash in runtime. So please be sure to set both if you’re using the popover mode.ASAPPChatInsteadViewController
instance. (ee Getting Started.
ASAPPChatInsteadViewController
uses ASAPPColors for styling, so it will automatically use the colors set there (e.g. primary
, background
, onBackground
, etc.), which are the same colors used for customizing the ASAPP chat interface. There is no way to independently change the styling of the Chat Instead UI.
ASAPPChatInsteadViewController
, it will automatically fetch remote settings to indicate which channels to display. You can configure these settings.
ASAPPChatInsteadViewController
instance).