You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Current »
The method allows adding the current user to a segment.
sdk.addToSegment(segmentId, email, phone)
The current user's phone in full international format.
A phone number in full international format may begin with a plus sign (+) followed by the country code, city (area) code, and phone number.
sdk.addToSegment("100500", "john.doe@examplestore.com", "+10000000000")
sdk.addToSegment("100500", "john.doe@examplestore.com", null)
sdk.addToSegment("100500", null, "+10000000000")
sdk.addToSegment("100500", null, null)
The method allows excluding the current user from a segment.
sdk.removeFromSegment(segmentId, email, phone)
sdk.removeFromSegment("100500", "john.doe@examplestore.com", "+10000000000")
sdk.removeFromSegment("100500", "john.doe@examplestore.com", null)
sdk.removeFromSegment("100500", null, "+10000000000")
sdk.removeFromSegment("100500", null, null)
The method allows getting a list of segments that include the current user.
sdk.getCurrentSegment(callback)
Object array, each will have the following properties:
static, dynamic, rfm
PersonaClick.getCurrentSegment(array : OnApiCallbackListener() { fun onSuccess(segments: JSONArray) { // segments (type: array of objects) } })
Page Navigation
Related Pages