Class BatchUserProfile

java.lang.Object
com.batch.android.BatchUserProfile

@Deprecated public final class BatchUserProfile extends Object
Deprecated.
Please use Batch.User methods instead
User profile that contains user specific targeting data
  • Method Details

    • setLanguage

      @Deprecated public BatchUserProfile setLanguage(String language)
      Deprecated.
      Please use Batch.User methods instead
      Set 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 public String getLanguage()
      Deprecated.
      Please use Batch.User methods instead
      Get the current language of this user.
      If you set a custom one using setLanguage(java.lang.String) this method will return this one otherwise it will return the device default.
      Returns:
    • setRegion

      @Deprecated public BatchUserProfile setRegion(String region)
      Deprecated.
      Please use Batch.User methods instead
      Set 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 public String getRegion()
      Deprecated.
      Please use Batch.User methods instead
      Get the current region of this user.
      If you set a custom one using setRegion(java.lang.String) this method will return this one otherwise it will return the device default.
      Returns:
    • setCustomID

      @Deprecated public BatchUserProfile setCustomID(String customID)
      Deprecated.
      Please use Batch.User methods instead
      Set 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 public String getCustomID()
      Deprecated.
      Please use Batch.User methods instead
      Return the custom ID of the user if you specified any using the setCustomID(java.lang.String)
      Returns:
      customID if any, null otherwise