Package io.sentry.adapters
Class OrientationDeserializerAdapter
- java.lang.Object
-
- io.sentry.adapters.OrientationDeserializerAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Device.DeviceOrientation>
@Internal public final class OrientationDeserializerAdapter extends java.lang.Object implements com.google.gson.JsonDeserializer<Device.DeviceOrientation>
-
-
Constructor Summary
Constructors Constructor Description OrientationDeserializerAdapter(@NotNull SentryOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Device.DeviceOrientation
deserialize(@Nullable com.google.gson.JsonElement json, @NotNull java.lang.reflect.Type typeOfT, @NotNull com.google.gson.JsonDeserializationContext context)
-
-
-
Constructor Detail
-
OrientationDeserializerAdapter
public OrientationDeserializerAdapter(@NotNull @NotNull SentryOptions options)
-
-
Method Detail
-
deserialize
@Nullable public Device.DeviceOrientation deserialize(@Nullable @Nullable com.google.gson.JsonElement json, @NotNull @NotNull java.lang.reflect.Type typeOfT, @NotNull @NotNull com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Device.DeviceOrientation>
- Throws:
com.google.gson.JsonParseException
-
-