pyze.xamarin.android.PyzeIdentity Class Reference

PyzeIdentity 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...

Static Public Member Functions

static void SetUserIdentifier (string userId)
 Set User Identifier. 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...
 
static void ResetUserIdentifier ()
 Resets App specific User Identifier. Call this when a user logs off. More...
 
static void PostTraits (Dictionary< string, object > customAttributes)
 Post the user details traits.
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

PyzeIdentity 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

static void pyze.xamarin.android.PyzeIdentity.PostTraits ( Dictionary< string, object >  customAttributes)
inlinestatic

Post the user details traits.
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
traitsTraits.
static void pyze.xamarin.android.PyzeIdentity.ResetUserIdentifier ( )
inlinestatic

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

static void pyze.xamarin.android.PyzeIdentity.SetUserIdentifier ( string  userId)
inlinestatic

Set User Identifier. 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
userIdUser identifier.

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