-
- All Implemented Interfaces:
-
io.sentry.IAppStartExtender
@ApiStatus.Internal() public final class AppStartExtension implements IAppStartExtender
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAppStartExtension.ExtendedAppStartpublic interfaceAppStartExtension.ExtendAppStartListener
-
Field Summary
Fields Modifier and Type Field Description private AppStartExtension.ExtendAppStartListenerextendAppStartListener
-
Constructor Summary
Constructors Constructor Description AppStartExtension(AppStartMetrics metrics)
-
Method Summary
Modifier and Type Method Description voidsetExtendAppStartListener(@Nullable() AppStartExtension.ExtendAppStartListener listener)voidextendAppStart()voidsetData(@NotNull() String key, @Nullable() Object value)Sets data on the owned (eager) transaction if it is still open. voidfinishExtendedAppStart()ISpangetExtendedAppStartSpan()booleanisActive()booleanisExtended()Whether this app start was extended at all, regardless of finish or deadline state. voidfinishTransaction(@NotNull() SentryDate endTimestamp)SentryDategetExtendedEndTime()voidclear()-
-
Constructor Detail
-
AppStartExtension
AppStartExtension(AppStartMetrics metrics)
-
-
Method Detail
-
setExtendAppStartListener
void setExtendAppStartListener(@Nullable() AppStartExtension.ExtendAppStartListener listener)
-
extendAppStart
void extendAppStart()
-
setData
void setData(@NotNull() String key, @Nullable() Object value)
Sets data on the owned (eager) transaction if it is still open. Used to attach the screen nameonce the first activity is known, since the transaction is created in
{@code onCreate}beforeany activity exists.
-
finishExtendedAppStart
void finishExtendedAppStart()
-
getExtendedAppStartSpan
@Nullable() ISpan getExtendedAppStartSpan()
-
isActive
boolean isActive()
-
isExtended
boolean isExtended()
Whether this app start was extended at all, regardless of finish or deadline state. Used by theevent processor to decide whether to apply the never-shorten vital logic.
-
finishTransaction
void finishTransaction(@NotNull() SentryDate endTimestamp)
-
getExtendedEndTime
@Nullable() SentryDate getExtendedEndTime()
-
clear
void clear()
-
-
-
-