Class Context

java.lang.Object
com.intercom.api.types.Context

public final class Context extends Object
  • Method Details

    • getConversationId

      public Optional<Integer> getConversationId()
      Returns:
      The id of the conversation where the app is added or being used.
    • getLocation

      public Optional<Context.Location> getLocation()
      Returns:
      Where the app is added or the action took place. Can be either 'conversation', 'home', 'message', or 'operator'.
    • getLocale

      public Optional<String> getLocale()
      Returns:
      The default end-user language of the Messenger. Use to localise Messenger App content.
    • getMessengerActionColour

      public Optional<String> getMessengerActionColour()
      Returns:
      The messengers action colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger.
    • getMessengerBackgroundColour

      public Optional<String> getMessengerBackgroundColour()
      Returns:
      The messengers background colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger.
    • getReferrer

      public Optional<String> getReferrer()
      Returns:
      The current page URL where the app is being used.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Context.Builder builder()