Package io.sentry.protocol
Class SdkVersion
java.lang.Object
io.sentry.protocol.SdkVersion
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
The SDK Interface describes the Sentry SDK and its configuration used to capture and transmit an
event.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIntegration
(@NotNull String integration) void
addPackage
(@NotNull String name, @NotNull String version) boolean
Deprecated.@NotNull String
getName()
@Nullable List<SentryPackage>
Deprecated.usegetPackageSet()
()}@NotNull Set<SentryPackage>
@NotNull String
int
hashCode()
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setUnknown
(@Nullable Map<String, Object> unknown) void
setVersion
(@NotNull String version) static @NotNull SdkVersion
updateSdkVersion
(@Nullable SdkVersion sdk, @NotNull String name, @NotNull String version) Updates the Sdk name and version or create a new one with the given values
-
Constructor Details
-
SdkVersion
-
-
Method Details
-
getVersion
-
setVersion
-
getName
-
setName
-
addPackage
-
addIntegration
-
getPackages
Deprecated.usegetPackageSet()
()}Gets installed Sentry packages as list -
getPackageSet
-
getIntegrations
Deprecated.Gets installed Sentry integration names as list -
getIntegrationSet
-
updateSdkVersion
@NotNull public static @NotNull SdkVersion updateSdkVersion(@Nullable @Nullable SdkVersion sdk, @NotNull @NotNull String name, @NotNull @NotNull String version) Updates the Sdk name and version or create a new one with the given values- Parameters:
sdk
- the SdkVersion object or nullname
- the sdk nameversion
- the sdk version- Returns:
- the SdkVersion
-
equals
-
hashCode
public int hashCode() -
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getIntegrationSet()