Package 

Interface ISmsSubscription

  • All Implemented Interfaces:
    com.onesignal.user.subscriptions.ISubscription

    
    public interface ISmsSubscription
     implements ISubscription
                        

    A SMS subscription allows a user to receive notifications through the email channel.

    • Method Summary

      Modifier and Type Method Description
      abstract String getNumber() The phone number notifications will be sent to for this subscription, in E.164 format.
      abstract String getId() The unique identifier for this subscription.
      • Methods inherited from class java.lang.Object

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

      • getNumber

         abstract String getNumber()

        The phone number notifications will be sent to for this subscription, in E.164 format.

      • getId

         abstract String getId()

        The unique identifier for this subscription. This will be an empty string until the subscription has been successfully created on the backend and assigned an ID. Use addChangeHandler to be notified when the id has been successfully assigned.