Message Parts (Discontinued)

🚧

Note

Please note that we have announced end of sale for Android UI SDK. It is no longer offered as a standard Webex Connect capability.

com.imimobile.connect.ui.data

ICCustomerDetails

Certain integrations, such as IMIchat, allow customer details to be sent to the agent serving customer requests. This class encapsulates that information.

Properties

PropertyDescription
First nameThe customers first name
Last nameThe customers last name
Phone numberThe customer's phone number
EmailThe customer's email address

getFirstName

This method is used to get the customer's first name.

  Syntax: java.lang.String getFirstName()

  Returns value: Returns customers first name.

getLastName

This method is used to get the customer's last name.

  Syntax: java.lang.String getLastName()

  Returns value: Returns customers last name.

getEmail

This method is used to get the customer's email addresses.

  Syntax: java.lang.String getEmail()

  Returns value: Returns customer's email address

getPhoneNumber

This method is used to get customers Phone Number

  Syntax: java.lang.String getPhoneNumber()

  Returns value: Returns customer's phone number.

fromBundle

This method is used to get Customer details instance from the bundle object.

  Syntax: ICCustomerDetails fromBundle(@NonNull android.os.Bundle bundle)

  Parameters :

ParameterTypeDescription
bundleandroid.os.Bundlebundle object

  Returns value: Returns customer details instance

toBundle

This method is used to convert Customer details instance parameters to bundle object.

  Syntax: Iandroid.os.Bundle toBundle()

  Returns value: Returns bundle object

builder

This method is used to build customer details instance.

  Syntax: static ICCustomerDetails.Builder builder()

com.imimobile.connect.ui.data.messagepart

ICTextMessagePart

This class will retrieve all the text that will be displayed for a specific message.

Constructor

ICTextMessagePart

  Syntax: ICTextMessagePart(String text)

  Parameter:

ParameterTypeDescription
textStringThe message text

ICURLMessagePart

This class will retrieve a URL from which a preview will be displayed for a specific message.

ICURLMessagePart

  Syntax: ICURLMessagePart(java.net.URL url)

  Parameter:

ParameterTypeDescription
urljava.net.URLThe URL that will be represented in the message part view

ICAttachmentMessagePart

This class implements the ICMessagePart interface and will retrieve a single attachment that will be displayed for a specific message.

ICAttachmentMessagePart

  Syntax: ICAttachmentMessagePart(ICAttachment attachment, File localFile)

  Parameter:

ParameterTypeDescription
attachmentICAttachmentmessage attachment
localFileFilelocal File for attachment

ICAttachmentMessagePart

  Syntax: ICAttachmentMessagePart(ICAttachment attachment)

  Parameter:

ParameterTypeDescription
attachmentICAttachmentmessage attachment

getAttachment

This method is used to get an attachment that should be displayed in the message
part view.

  Syntax: ICAttachment getAttachment()

  Returns value: Returns attachment that should be displayed in the message part view.

getLocalFile

This method is used to get local file where message attachment stored locally

  Syntax: File getLocalFile()

  Returns value: Returns local file created from local file path where message attachment stored locally.

setLocalFile

This method is used to set a local file where message attachment stored locally.

  Syntax: void setLocalFile(File localFile)

  Parameter:

ParameterTypeDescription
localFileFilelocal File for message attachment

ICBundleMessagePart

This class provides Bundle message part implementation for message types such as
bundle.

setBundle

This method is used to set a bundle to bundle message part.

  Syntax: void setBundle(android.os.Bundle bundle)

  Parameter:

ParameterTypeDescription
bundleandroid.os.Bundlebundle object

getLocalFile

This method is used to get the bundle instance from the Bundle message part.

  Syntax: android.os.Bundle getBundle()

  Returns value: Returns bundle instance from message part.