Package 

Class UserState

    • Method Summary

      Modifier and Type Method Description
      final String getOnesignalId() The unique identifier for your OneSignal account.
      final String getExternalId() The external identifier that you use to identify users.
      final JSONObject toJSONObject()
      • Methods inherited from class java.lang.Object

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

      • UserState

        UserState(String onesignalId, String externalId)
    • Method Detail

      • getOnesignalId

         final String getOnesignalId()

        The unique identifier for your OneSignal account. This will be an empty string until the user has been successfully logged in on the backend and assigned an ID. Use addObserver to be notified when the onesignalId has been successfully assigned.

      • getExternalId

         final String getExternalId()

        The external identifier that you use to identify users. Use addObserver to be notified when the externalId has been successfully assigned. This will be an empty string if no external identifier has been assigned to the associated onesignalId.