@ApiStatus.Internal
public final class MainThreadChecker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isMainThread()
Checks if the calling/current thread is the Android Main/UI thread
|
static boolean |
isMainThread(@NotNull io.sentry.protocol.SentryThread sentryThread)
Checks if a given thread is the Android Main/UI thread
|
static boolean |
isMainThread(@NotNull java.lang.Thread thread)
Checks if a given thread is the Android Main/UI thread
|
public static boolean isMainThread(@NotNull
@NotNull java.lang.Thread thread)
thread - the Threadpublic static boolean isMainThread()
public static boolean isMainThread(@NotNull
@NotNull io.sentry.protocol.SentryThread sentryThread)
sentryThread - the SentryThread