User Attributes
Adding
Luciq.setUserAttribute("True", withKey: "Logged in")
Luciq.setUserAttribute("False", withKey: "Completed IAP")[Luciq setUserAttribute:@"True" withKey:@"Logged in"];
[Luciq setUserAttribute:@"18" withKey:@"Age"];Luciq.setUserAttribute("Age", "18");
Luciq.setUserAttribute("LoggedIn", "True");Luciq.setUserAttribute("Age", "18")
Luciq.setUserAttribute("LoggedIn", "True")Luciq.setUserAttribute("Age", "18");
Luciq.setUserAttribute("Logged", "True");Luciq.setUserAttributeWithKey(String value, String key)
//Examples
Luciq.setUserAttributeWithKey("18", "Age");
Luciq.setUserAttributeWithKey("True", "Logged In");Retrieving
//Retrieving
let loggedIn = Luciq.userAttribute(forKey: "Logged in")
//Retrieve all
let allUserAttributes = Luciq.userAttributes()//Retrieve one
NSString *loggedIn = [Luciq userAttributeForKey:@"Logged in"];
//Retrieve all
NSDictionary *allUserAttributes = [Luciq userAttributes];//Get map of all user attributes
HashMap<String, String> userAttrs = Luciq.getAllUserAttributes();//Get map of all user attributes
val userAttrs = Luciq.getAllUserAttributes()// Getting attribute
Luciq.getUserAttribute("Logged in", function(attribute) {
// `attribute` is the return value
});
// Loading all attributes
Luciq.getAllUserAttributes(function (allAttributes) {
// `allAttributes` Object containing all keys and attributes
});Removing
Last updated