-
- All Implemented Interfaces:
-
com.bugsnag.android.internal.StateObserver
public final class NativeBridge implements StateObserverObserves changes in the Bugsnag environment, propagating them to the native layer
-
-
Constructor Summary
Constructors Constructor Description NativeBridge(BackgroundTaskService bgTaskService)
-
Method Summary
-
-
Method Detail
-
install
final Unit install(String apiKey, String reportingDirectory, String lastRunInfoPath, String eventUUID, Integer consecutiveLaunchCrashes, Boolean autoDetectNdkCrashes, Integer apiLevel, Boolean is32bit, Integer threadSendPolicy, Integer maxBreadcrumbs)
-
startedSession
final Unit startedSession(String sessionID, String key, Integer handledCount, Integer unhandledCount)
-
reportOutOfMemory
final Unit reportOutOfMemory(OutOfMemoryError oom)
-
addMetadataString
final Unit addMetadataString(String tab, String key, String value)
-
addMetadataDouble
final Unit addMetadataDouble(String tab, String key, Double value)
-
addMetadataBoolean
final Unit addMetadataBoolean(String tab, String key, Boolean value)
-
addMetadataOpaque
final Unit addMetadataOpaque(String tab, String key, String value)
-
addHandledEvent
final Unit addHandledEvent()
-
addUnhandledEvent
final Unit addUnhandledEvent()
-
clearMetadataTab
final Unit clearMetadataTab(String tab)
-
removeMetadata
final Unit removeMetadata(String tab, String key)
-
pausedSession
final Unit pausedSession()
-
updateContext
final Unit updateContext(String context)
-
updateGroupingDiscriminator
final Unit updateGroupingDiscriminator(String groupingDiscriminator)
-
updateInForeground
final Unit updateInForeground(Boolean inForeground, String activityName)
-
updateIsLaunching
final Unit updateIsLaunching(Boolean isLaunching)
-
updateOrientation
final Unit updateOrientation(String orientation)
-
updateUserId
final Unit updateUserId(String newValue)
-
updateUserEmail
final Unit updateUserEmail(String newValue)
-
updateUserName
final Unit updateUserName(String newValue)
-
updateLowMemory
final Unit updateLowMemory(Boolean newValue, String memoryTrimLevelDescription)
-
getSignalUnwindStackFunction
final Long getSignalUnwindStackFunction()
-
addFeatureFlag
final Unit addFeatureFlag(String name, String variant)
-
clearFeatureFlag
final Unit clearFeatureFlag(String name)
-
clearFeatureFlags
final Unit clearFeatureFlags()
-
refreshSymbolTable
final Unit refreshSymbolTable()
-
initCallbackCounts
final Unit initCallbackCounts(Map<String, Integer> counts)
-
notifyAddCallback
final Unit notifyAddCallback(String callback)
-
notifyRemoveCallback
final Unit notifyRemoveCallback(String callback)
-
getCurrentCallbackSetCounts
final Map<String, Integer> getCurrentCallbackSetCounts()
-
getCurrentNativeApiCallUsage
final Map<String, Boolean> getCurrentNativeApiCallUsage()
-
setStaticJsonData
final Unit setStaticJsonData(String data)
-
setInternalMetricsEnabled
final Unit setInternalMetricsEnabled(Boolean enabled)
-
onStateChange
Unit onStateChange(StateEvent event)
-
-
-
-