public class Subject
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Subject.SubjectBuilder
Builder for the Subject
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getSubject() |
java.util.Map<java.lang.String,java.lang.Object> |
getSubjectLocation() |
java.util.Map<java.lang.String,java.lang.String> |
getSubjectMobile() |
void |
setCarrier(android.content.Context context)
Sets the carrier of the android
device.
|
void |
setColorDepth(int depth)
user defined color depth.
|
void |
setContextualParams(android.content.Context context)
Sets the contextually based parameters.
|
void |
setDefaultScreenResolution(android.content.Context context)
Sets the default screen resolution
of the device the Tracker is running
on.
|
void |
setDomainUserId(java.lang.String domainUserId)
User inputted Domain User Id for the
subject.
|
void |
setIpAddress(java.lang.String ipAddress)
User inputted ip address for the
subject.
|
void |
setLanguage(java.lang.String language)
User inputted language for the
subject.
|
void |
setLocation(android.content.Context context)
Sets the location of the android
device.
|
void |
setNetworkUserId(java.lang.String networkUserId)
User inputted Network User Id for the
subject.
|
void |
setScreenResolution(int width,
int height)
Sets a custom screen resolution based
on user inputted width and height.
|
void |
setTimezone(java.lang.String timezone)
User inputted timezone
|
void |
setUseragent(java.lang.String useragent)
User inputted useragent for the
subject.
|
void |
setUserId(java.lang.String userId)
Sets the subjects userId
|
void |
setViewPort(int width,
int height)
Sets the view port resolution
Measured in pixels: 1280x1024
|
public void setContextualParams(android.content.Context context)
context - the android contextpublic void setDefaultScreenResolution(android.content.Context context)
context - the android contextpublic void setLocation(android.content.Context context)
context - the android contextpublic void setCarrier(android.content.Context context)
context - the android contextpublic void setUserId(java.lang.String userId)
userId - a user id stringpublic void setScreenResolution(int width,
int height)
width - the width of the screenheight - the height of the screenpublic void setViewPort(int width,
int height)
width - the width of the viewportheight - the height of the viewportpublic void setColorDepth(int depth)
depth - the color depthpublic void setTimezone(java.lang.String timezone)
timezone - a valid timezonepublic void setLanguage(java.lang.String language)
language - language settingpublic void setIpAddress(java.lang.String ipAddress)
ipAddress - an ip addresspublic void setUseragent(java.lang.String useragent)
useragent - a useragentpublic void setNetworkUserId(java.lang.String networkUserId)
networkUserId - a network user idpublic void setDomainUserId(java.lang.String domainUserId)
domainUserId - a domain user idpublic java.util.Map<java.lang.String,java.lang.Object> getSubjectLocation()
public java.util.Map<java.lang.String,java.lang.String> getSubjectMobile()
public java.util.Map<java.lang.String,java.lang.String> getSubject()