Subject methods
caution
You are reading documentation for an outdated version. Here's the latest one!
A list of the methods used to add data to the Subject class.
Set the platform with setPlatform
The default platform is Server. These are the available alternatives, all available in the package com.snowplowanalytics.snowplow.scalatracker:
- Server
- Web
- Mobile
- Desktop
- Tv
- Console
- InternetOfThings
- General
Example usage
java
subject.setPlatform(Tv)
Set the user ID with setUserId
You can make the user ID a string of your choice:
java
subject.setUserId("user-000563456")