pyze.xamarin.iOS.PyzeIdentity Interface Reference

You can use this class to send the user’s traits to Pyze.
You can identify a user using setUserIdentity method and reset the user’s identity using resetUserIdentity method. More...

Public Member Functions

void SetUserIdentifer (string uniqueID)
 Use this to identify users. Examples include: username, userid, email address, phone number, or a hashedId.
Call this when a user logs in, registers or signs up. More...
 
void ResetUserIdentifer ()
 Resets App specific User Identifer. Call this when a user logs off. More...
 
void PostTraits (NSDictionary attributes)
 Post the user traits to Pyze. Send user traits as a map/dictionary.
Here are some example traits you can use:
Send user traits as a dictionary. For example
attributes.Add("address","585 Broadway Street, Redwood City, California 94063");
attributes.Add("age","25");
attributes.Add("avatar", "https://mark.com");
attributes.Add("birthday", "01-04-1986");
attributes.Add("createdAt","Date String");
attributes.Add("description","Web Hosting Specialist");
attributes.Add("email", "myEmail@gmail.com");
attributes.Add("firstName", "Mark");
attributes.Add("gender","male");
attributes.Add("lastName", "Hive");
attributes.Add("name", "Mark Hive");
attributes.Add("phoneNumber","415 555 1212");
attributes.Add("title","Web Hosting Specialist");
attributes.Add("username", "markh");
attributes.Add("website", "https://pyze.com");
attributes.Add("facebookId","USER_facebookId");
attributes.Add("twitterUsername","USER_twitterId");
attributes.Add("snapchatUsername", "USER_snapchatId");
attributes.Add("linkedInProfileId", "USER_linkedinId");
attributes.Add("instagramUserId", "USER_instagramId"); More...
 

Detailed Description

You can use this class to send the user’s traits to Pyze.
You can identify a user using setUserIdentity method and reset the user’s identity using resetUserIdentity method.

Member Function Documentation

void pyze.xamarin.iOS.PyzeIdentity.PostTraits ( NSDictionary  attributes)

Post the user traits to Pyze. Send user traits as a map/dictionary.
Here are some example traits you can use:
Send user traits as a dictionary. For example
attributes.Add("address","585 Broadway Street, Redwood City, California 94063");
attributes.Add("age","25");
attributes.Add("avatar", "https://mark.com");
attributes.Add("birthday", "01-04-1986");
attributes.Add("createdAt","Date String");
attributes.Add("description","Web Hosting Specialist");
attributes.Add("email", "myEmail@gmail.com");
attributes.Add("firstName", "Mark");
attributes.Add("gender","male");
attributes.Add("lastName", "Hive");
attributes.Add("name", "Mark Hive");
attributes.Add("phoneNumber","415 555 1212");
attributes.Add("title","Web Hosting Specialist");
attributes.Add("username", "markh");
attributes.Add("website", "https://pyze.com");
attributes.Add("facebookId","USER_facebookId");
attributes.Add("twitterUsername","USER_twitterId");
attributes.Add("snapchatUsername", "USER_snapchatId");
attributes.Add("linkedInProfileId", "USER_linkedinId");
attributes.Add("instagramUserId", "USER_instagramId");

Parameters
dictionaryDictionary.
void pyze.xamarin.iOS.PyzeIdentity.ResetUserIdentifer ( )

Resets App specific User Identifer. Call this when a user logs off.

void pyze.xamarin.iOS.PyzeIdentity.SetUserIdentifer ( string  uniqueID)

Use this to identify users. Examples include: username, userid, email address, phone number, or a hashedId.
Call this when a user logs in, registers or signs up.

Parameters
uniqueIDUnique identifier.

The documentation for this interface was generated from the following file:
  • src/ApiDefinitions.cs