Class DeviceContext


  • public final class DeviceContext
    extends java.lang.Object
    Accounts device context. Needed to initialize the Sdk with a set of device keys. See `Sdk.initialize()`
    • Method Detail

      • getDeviceId

        public final DeviceId getDeviceId()
      • getAccountId

        public final UserId getAccountId()
      • getSegmentId

        public final long getSegmentId()
      • getDevicePrivateKey

        public final PrivateKey getDevicePrivateKey()
      • toJsonString

        public final java.lang.String toJsonString()
      • fromJsonString

        public static DeviceContext fromJsonString​(java.lang.String jsonString)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable