Package 

Class OneSignalUserProfile.Builder

    • Method Summary

      Modifier and Type Method Description
      final <ERROR CLASS> setEmail(String email) Email to create or transfer onto this user at login.
      final <ERROR CLASS> setEmailEnabled(Boolean enabled) Subscription status for the email.
      final <ERROR CLASS> setSms(String sms) SMS to create or transfer onto this user at login.
      final <ERROR CLASS> setSmsEnabled(Boolean enabled) Subscription status for the SMS number.
      final <ERROR CLASS> setTags(Map<String, String> tags) Sets tags to apply at login.
      final <ERROR CLASS> setAliases(Map<String, String> aliases) Sets aliases to apply at login.
      final OneSignalUserProfile build() Builds the profile.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OneSignalUserProfile.Builder

        OneSignalUserProfile.Builder()
    • Method Detail

      • setEmail

         final <ERROR CLASS> setEmail(String email)

        Email to create or transfer onto this user at login.

      • setEmailEnabled

         final <ERROR CLASS> setEmailEnabled(Boolean enabled)

        Subscription status for the email. Subscribes when true, unsubscribes when false. Unset sends no status, so an address that already exists keeps the status it has, unless a pending com.onesignal.user.IUserManager.addEmail for it sends one. Ignored without setEmail. Cannot be returned to unset once called.

      • setSms

         final <ERROR CLASS> setSms(String sms)

        SMS to create or transfer onto this user at login. Must be E.164 (e.g. +14155552671).

      • setSmsEnabled

         final <ERROR CLASS> setSmsEnabled(Boolean enabled)

        Subscription status for the SMS number. Subscribes when true, unsubscribes when false. Unset sends no status, so a number that already exists keeps the status it has, unless a pending com.onesignal.user.IUserManager.addSms for it sends one. Ignored without setSms. Cannot be returned to unset once called.

      • setTags

         final <ERROR CLASS> setTags(Map<String, String> tags)

        Sets tags to apply at login. The map is copied.