Package 

Class HubspotManager

    • Method Detail

      • startChat

         final Unit startChat()

        Shares the logs with chat started

      • configure

         final Unit configure()

        It creates Hubspot configurations When user uses the demo app, it always call this method to configure with the hubspot sdk. This is the only method which is handled by the application.

      • setUserIdentity

         final Unit setUserIdentity(String email, String token)

        Set the user identity token and email. These will be included when starting a chat session to identify the users. These values are only stored in memory and aren't persisted. These values are set when user use the setUserIdentity with passing email and token

        Parameters:
        email - : The users email address, that matches the token.
        token - : The token from the identity api.
      • getPortalId

         final <ERROR CLASS> getPortalId()

        Getter method for hubspot portal id

      • getHublet

         final <ERROR CLASS> getHublet()

        Getter method for hubspot Hublet

      • getEnvironment

         final <ERROR CLASS> getEnvironment()

        Getter method for hubspot Environment

      • getDefaultChatFlow

         final <ERROR CLASS> getDefaultChatFlow()

        Getter method for hubspot DefaultChatFlow

      • setPushToken

         final Unit setPushToken(String pushToken)

        This method is used for sending the token via Hubspot API

        Parameters:
        pushToken - : It has FCM token
      • getPushToken

         final String getPushToken()

        This method is used for getting a PushToken from the shared preferences

      • deleteDeviceToken

         final Unit deleteDeviceToken(String pushToken)

        This method is used for deleting the push token via Hubspot API

        Parameters:
        pushToken - : It has FCM token