Package zendesk.chat
Interface ProfileProvider
-
public interface ProfileProviderA provider to access and control visitor profile information.You can access it as follows:
ProfileProvider profileProvider = Chat.INSTANCE.providers().profileProvider();Make sure to initialize Zendesk Chat SDK first before accessing the providers, see
Chat.init(Context, String)for more details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddVisitorTags(java.util.List<java.lang.String> tags, <any> callback)Adds the tags to the visitor profile.voidappendVisitorNote(java.lang.String note)Appends the note to an existing note on the visitor profile.voidclearVisitorNotes()Clears all visitor notes.voidremoveVisitorTags(java.util.List<java.lang.String> tags, <any> callback)Removes the tags from the visitor profile.voidsetVisitorInfo(VisitorInfo visitorInfo)Sets the information about the visitor.voidsetVisitorNote(java.lang.String note)Sets the note on the visitor profile.voidtrackVisitorPath(VisitorPath visitorPath, <any> callback)Tracks the current location of the visitor.
-
-
-
Method Detail
-
trackVisitorPath
void trackVisitorPath(VisitorPath visitorPath, <any> callback)
Tracks the current location of the visitor. Once the location is tracked, you can see the navigation history of the visitor in the Zendesk Chat dashboard. Sends a visitor path to the Zendesk Chat backend.Visitor paths persists across chat sessions.
- Parameters:
visitorPath- an instance ofVisitorPathcallback- optional callback for success and error handling
-
setVisitorInfo
void setVisitorInfo(VisitorInfo visitorInfo)
Sets the information about the visitor.Visitor information persists across chat sessions.
- Parameters:
visitorInfo- the information about the visitor
-
addVisitorTags
void addVisitorTags(java.util.List<java.lang.String> tags, <any> callback)Adds the tags to the visitor profile.Visitor tags persists across chat sessions.
- Parameters:
tags- list of tags to be addedcallback- optional callback for success and error handling
-
removeVisitorTags
void removeVisitorTags(java.util.List<java.lang.String> tags, <any> callback)Removes the tags from the visitor profile.Visitor tags persists across chat sessions.
- Parameters:
tags- list of tags to be removedcallback- optional callback for success and error handling
-
setVisitorNote
void setVisitorNote(java.lang.String note)
Sets the note on the visitor profile.This will overwrite any existing notes
Visitor notes persists across chat sessions.
- Parameters:
note- the String value to be set as a note
-
appendVisitorNote
void appendVisitorNote(java.lang.String note)
Appends the note to an existing note on the visitor profile.Visitor notes persists across chat sessions.
- Parameters:
note- the note to append
-
clearVisitorNotes
void clearVisitorNotes()
Clears all visitor notes.
-
-