-
- All Implemented Interfaces:
-
com.bugsnag.android.JsonStream.Streamable
public final class AppWithState extends App
Stateful information set by the notifier about your app can be found on this class. These values can be accessed and amended if necessary.
-
-
Field Summary
Fields Modifier and Type Field Description private Numberdurationprivate NumberdurationInForegroundprivate BooleaninForegroundprivate BooleanisLaunchingprivate StringbuildUuidprivate StringbinaryArchprivate Stringidprivate StringreleaseStageprivate Stringversionprivate StringcodeBundleIdprivate Stringtypeprivate NumberversionCode
-
Method Summary
Modifier and Type Method Description final NumbergetDuration()The number of milliseconds the application was running before the event occurred final UnitsetDuration(Number duration)The number of milliseconds the application was running before the event occurred final NumbergetDurationInForeground()The number of milliseconds the application was running in the foreground before the event occurred final UnitsetDurationInForeground(Number durationInForeground)The number of milliseconds the application was running in the foreground before the event occurred final BooleangetInForeground()Whether the application was in the foreground when the event occurred final UnitsetInForeground(Boolean inForeground)Whether the application was in the foreground when the event occurred final BooleangetIsLaunching()Whether the application was launching when the event occurred final UnitsetIsLaunching(Boolean isLaunching)Whether the application was launching when the event occurred final StringgetBuildUuid()final UnitsetBuildUuid(String buildUuid)final StringgetBinaryArch()The architecture of the running application binary final UnitsetBinaryArch(String binaryArch)The architecture of the running application binary final StringgetId()The package name of the application final UnitsetId(String id)The package name of the application final StringgetReleaseStage()The release stage set in Configuration. final UnitsetReleaseStage(String releaseStage)The release stage set in Configuration. final StringgetVersion()The version of the application set in Configuration. final UnitsetVersion(String version)The version of the application set in Configuration. final StringgetCodeBundleId()The revision ID from the manifest (React Native apps only) final UnitsetCodeBundleId(String codeBundleId)The revision ID from the manifest (React Native apps only) final StringgetType()The application type set in Configuration#version final UnitsetType(String type)The application type set in Configuration#version final NumbergetVersionCode()The version code of the application set in Configuration. final UnitsetVersionCode(Number versionCode)The version code of the application set in Configuration. -
-
Method Detail
-
getDuration
final Number getDuration()
The number of milliseconds the application was running before the event occurred
-
setDuration
final Unit setDuration(Number duration)
The number of milliseconds the application was running before the event occurred
-
getDurationInForeground
final Number getDurationInForeground()
The number of milliseconds the application was running in the foreground before the event occurred
-
setDurationInForeground
final Unit setDurationInForeground(Number durationInForeground)
The number of milliseconds the application was running in the foreground before the event occurred
-
getInForeground
final Boolean getInForeground()
Whether the application was in the foreground when the event occurred
-
setInForeground
final Unit setInForeground(Boolean inForeground)
Whether the application was in the foreground when the event occurred
-
getIsLaunching
final Boolean getIsLaunching()
Whether the application was launching when the event occurred
-
setIsLaunching
final Unit setIsLaunching(Boolean isLaunching)
Whether the application was launching when the event occurred
-
getBuildUuid
final String getBuildUuid()
-
setBuildUuid
final Unit setBuildUuid(String buildUuid)
-
getBinaryArch
final String getBinaryArch()
The architecture of the running application binary
-
setBinaryArch
final Unit setBinaryArch(String binaryArch)
The architecture of the running application binary
-
getReleaseStage
final String getReleaseStage()
The release stage set in Configuration.releaseStage
-
setReleaseStage
final Unit setReleaseStage(String releaseStage)
The release stage set in Configuration.releaseStage
-
getVersion
final String getVersion()
The version of the application set in Configuration.version
-
setVersion
final Unit setVersion(String version)
The version of the application set in Configuration.version
-
getCodeBundleId
final String getCodeBundleId()
The revision ID from the manifest (React Native apps only)
-
setCodeBundleId
final Unit setCodeBundleId(String codeBundleId)
The revision ID from the manifest (React Native apps only)
-
getVersionCode
final Number getVersionCode()
The version code of the application set in Configuration.versionCode
-
setVersionCode
final Unit setVersionCode(Number versionCode)
The version code of the application set in Configuration.versionCode
-
-
-
-