|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sec.android.ad.targeting.UserProfile
public final class UserProfile
The UserProfile class is for setting the age, gender, interest keyword, and location of the application user.
Field Summary | |
---|---|
static java.lang.String |
FEMALE
|
static java.lang.String |
MALE
|
Constructor Summary | |
---|---|
UserProfile()
Sets UserProfile. |
|
UserProfile(java.lang.String gender,
int age,
java.util.List<java.lang.String> interests)
Sets UserProfile. |
|
UserProfile(java.lang.String gender,
int age,
java.lang.String interest)
Sets UserProfile. |
Method Summary | |
---|---|
void |
setAge(int age)
Sets the age of the application user. |
void |
setGender(java.lang.String gender)
Sets the gender of the application user. |
void |
setInterests(java.util.List<java.lang.String> interests)
Sets the interest keywords of the application user. |
void |
setInterests(java.lang.String interest)
Sets the interest keywords of the application user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MALE
public static final java.lang.String FEMALE
Constructor Detail |
---|
public UserProfile()
public UserProfile(java.lang.String gender, int age, java.lang.String interest)
gender
- "m" for male and "f" for femaleage
- Age, range: 1 ~ 200interest
- keyword for the application user.public UserProfile(java.lang.String gender, int age, java.util.List<java.lang.String> interests)
gender
- "m" for male and "f" for femaleage
- Age, range: 1 ~ 200interests
- keyword for the application user.Method Detail |
---|
public void setGender(java.lang.String gender)
gender
- "m" for male and "f" for femalepublic void setAge(int age)
age
- age range: 1 ~ 200public void setInterests(java.lang.String interest)
interest
- interest keyword, more than one keyword can be added by calling this method multiple times.public void setInterests(java.util.List<java.lang.String> interests)
interests
- interest keyword, List, this is used to set multiple keywords at once.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |