Activity Forums Salesforce® Discussions What is lightningsnapin:prechatUI in Salesforce?

  • Laveena

    Member
    September 20, 2019 at 11:33 am

    Hi Saddam,

    This interface is used to indicate that a component can be used with Snap-Ins Pre-Chat.

    This interface is a marker interface. A marker interface is a signal to the component’s container to add the interface’s behavior to the component. You don’t need to implement any specific methods or attributes in your component, you simply add the interface name to the component’s implements attribute.

    In this case, the interface doesn’t add behavior but makes the custom component available as a pre-chat page from Snap-ins Setup. Without this interface, the component doesn’t appear as a pre-chat page option in Snap-ins Setup. Use this interface with the lightningsnapin:prechatAPI component to enable customization of your pre-chat user interface experience in Snap-ins for web.

    This example shows the markup required to implement the lightningsnapin:prechatUI interface.

    <aura:component implements="lightningsnapin:prechatUI">
    <!-- ... -->
    </aura:component>

    Thanks

  • Deepak

    Member
    September 20, 2019 at 1:23 pm

    Without this interface, the component doesn’t appear as a pre-chat page option in Snap-ins Setup. Use this interface with the lightningsnapin:prechatAPI component to enable customization of your pre-chat user interface experience in Snap-ins for web. This interface is used to indicate that a component can be used with Snap-Ins Pre-Chat.This interface is a marker interface. A marker interface is a signal to the component’s container to add the interface’s behavior to the component. You don’t need to implement any specific methods or attributes in your component, you simply add the interface name to the component’s implements attribute.In this case, the interface doesn’t add behavior but makes the custom component available as a pre-chat page from Snap-ins Setup.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos