-
public final class UserStateA user state.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringonesignalIdprivate final StringexternalId
-
Method Summary
Modifier and Type Method Description final StringgetOnesignalId()The unique identifier for your OneSignal account. final StringgetExternalId()The external identifier that you use to identify users. final JSONObjecttoJSONObject()-
-
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.
-
toJSONObject
final JSONObject toJSONObject()
-
-
-
-