Package com.batch.android
Class BatchUserProfile
java.lang.Object
com.batch.android.BatchUserProfile
Deprecated.
Please use Batch.User methods instead
User profile that contains user specific targeting data
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use Batch.User methods insteadDeprecated.Please use Batch.User methods insteadDeprecated.Please use Batch.User methods insteadsetCustomID
(String customID) Deprecated.Please use Batch.User methods insteadsetLanguage
(String language) Deprecated.Please use Batch.User methods insteadDeprecated.Please use Batch.User methods instead
-
Method Details
-
setLanguage
Deprecated.Please use Batch.User methods insteadSet the language of this user.
Setting this will affect targeting of this user, use it only if you know what you're doing.- Parameters:
language
- a string that represent a locale language (ex: fr, en, pt, ru etc...)- Returns:
-
getLanguage
Deprecated.Please use Batch.User methods insteadGet the current language of this user.
If you set a custom one usingsetLanguage(java.lang.String)
this method will return this one otherwise it will return the device default.- Returns:
-
setRegion
Deprecated.Please use Batch.User methods insteadSet the region (country) of this user.
Setting this will affect targeting of this user, use it only if you know what you're doing.- Parameters:
region
- a string that represent a locale region (country) (ex: FR, US, BR, RU etc...)- Returns:
-
getRegion
Deprecated.Please use Batch.User methods insteadGet the current region of this user.
If you set a custom one usingsetRegion(java.lang.String)
this method will return this one otherwise it will return the device default.- Returns:
-
setCustomID
Deprecated.Please use Batch.User methods insteadSet the custom user identifier to Batch.
You should use this method if you have your own login system.
Be carefull : Do not use it if you don't know what you are doing, giving a bad custom user ID can result in failure into offer delivery and restore- Parameters:
customID
-
-
getCustomID
Deprecated.Please use Batch.User methods insteadReturn the custom ID of the user if you specified any using thesetCustomID(java.lang.String)
- Returns:
- customID if any, null otherwise
-