SMIHiddenPreChatDelegate

Objective-C

@protocol SMIHiddenPreChatDelegate

Swift

protocol HiddenPreChatDelegate

Delegate that handles requests for hidden pre-chat values.

  • Delegate event that is triggered when submitting pre-chat data.

    Declaration

    Objective-C

    - (void)core:(id<SMICoreClient>)core
                   conversation:(id<SMIConversation>)conversation
        didRequestPrechatValues:
            (NSArray<id<SMIHiddenPreChatField>> *)hiddenPreChatFields
              completionHandler:
                  (__strong SMIHiddenPreChatValueCompletion)completionHandler;

    Swift

    func core(_ core: Any!, conversation: Any!, didRequestPrechatValues hiddenPreChatFields: [HiddenPreChatField]!) async -> [HiddenPreChatField]?

    Parameters

    core

    The SMICoreClient instance that is managing the current connection.

    conversation

    The conversation.

    hiddenPreChatFields

    The hidden pre-chat fields that require values.

    completionHandler

    The ‘SMIHiddenPreChatValueCompletion’ that provides the values for the expected hidden pre-chat fields.