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:(nonnull id<SMICoreClient>)core
                   conversation:(nonnull id<SMIConversation>)conversation
        didRequestPrechatValues:
            (nonnull NSArray<id<SMIHiddenPreChatField>> *)hiddenPreChatFields
              completionHandler:
                  (nonnull SMIHiddenPreChatValueCompletion)completionHandler;

    Swift

    func core(_ core: any SMICoreClient, conversation: any SMIConversation, didRequestPrechatValues hiddenPreChatFields: [any HiddenPreChatField]) async -> [any 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.