You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
The method allows adding the current user to a segment.
sdk.addToSegment(params)
The current user's Phone.
sdk.addToSegment(segmentId: "100500", email: "john.doe@examplestore.com", phone: "+10000000000")
sdk.addToSegment(segmentId: "100500", email: "john.doe@examplestore.com")
sdk.addToSegment(segmentId: "100500", phone: "+10000000000")
sdk.addToSegment(segmentId: "100500")
The method allows excluding the current user from a segment.
sdk.removeFromSegment(params)
sdk.removeFromSegment(segmentId: "100500", email: "john.doe@examplestore.com", phone: "+10000000000")
sdk.removeFromSegment(segmentId: "100500", email: "john.doe@examplestore.com")
sdk.removeFromSegment(segmentId: "100500", phone: "+10000000000")
sdk.removeFromSegment(segmentId: "100500")
The method allows getting a list of segments that include the current user.
sdk.getCurrentSegment()
Object array, each will have the following properties:
static, dynamic
let segments = sdk.getCurrentSegment()
Page Navigation
Related Pages