@ApiStatus.Internal
public final class ConnectivityChecker
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectivityChecker.Status |
| Modifier and Type | Method and Description |
|---|---|
static ConnectivityChecker.Status |
getConnectionStatus(@NotNull Context context,
@NotNull io.sentry.ILogger logger)
Return the Connection status
|
static @Nullable java.lang.String |
getConnectionType(@NotNull Context context,
@NotNull io.sentry.ILogger logger,
@NotNull IBuildInfoProvider buildInfoProvider)
Check the connection type of the active network
|
@NotNull public static ConnectivityChecker.Status getConnectionStatus(@NotNull @NotNull Context context, @NotNull @NotNull io.sentry.ILogger logger)
@Nullable
public static @Nullable java.lang.String getConnectionType(@NotNull
@NotNull Context context,
@NotNull
@NotNull io.sentry.ILogger logger,
@NotNull
@NotNull IBuildInfoProvider buildInfoProvider)
context - the App. contextlogger - the logger from optionsbuildInfoProvider - the BuildInfoProvider provider