Package io.sentry

Class SessionAdapter


  • @Internal
    public final class SessionAdapter
    extends com.google.gson.TypeAdapter<Session>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable Session read​(com.google.gson.stream.JsonReader reader)  
      void write​(com.google.gson.stream.JsonWriter writer, Session value)  
      • Methods inherited from class com.google.gson.TypeAdapter

        fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
      • Methods inherited from class java.lang.Object

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

      • SessionAdapter

        public SessionAdapter​(@NotNull
                              @NotNull SentryOptions options)
    • Method Detail

      • write

        public void write​(com.google.gson.stream.JsonWriter writer,
                          Session value)
                   throws java.io.IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<Session>
        Throws:
        java.io.IOException
      • read

        @Nullable
        public @Nullable Session read​(com.google.gson.stream.JsonReader reader)
                               throws java.io.IOException
        Specified by:
        read in class com.google.gson.TypeAdapter<Session>
        Throws:
        java.io.IOException