Package com.castlabs.analytics
Class Crashlog
java.lang.Object
com.castlabs.analytics.Crashlog
This class provides the ability to manager the crash context and connect 
CrashReporter
 implementations that are then used to send crash data to a backend service.
 
 The Crashlog provides static method to report non-fatal error, add log lines, and add
 key/value pairs to the current context. The log lines and the key/value pairs might then
 be send to a backend service using a registered CrashReporter.
 
 Please note that no reported is setup buy default. You will need to either use an existing plugin
 to integrate a crash reporting backend, or implement the CrashReporter interface
 and add the reporter using addReporter(CrashReporter).- Since:
- 3.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringKey used to store the last used asset IDstatic final StringKey used to store the current audio bitratestatic final StringKey used to store the last used DRM typestatic final StringKey used to store the last required security levelstatic final StringKey used to store the current number of reported displaysstatic final StringKey used to store a boolean that indicates if the connected display is a remote displaystatic final StringKey used to store a boolean that indicates if the connected display is a secure displaystatic final StringKey used to store the current display configurationstatic final StringKey used to store the last used DRM typestatic final StringKey used to store the DRM backend URL for the last requeststatic final StringKey used to store the Offline ID in case offline key storage is enabledstatic final StringKey used to store the current playback position.static final StringKey used to store the current number of reported presentation displaysstatic final StringKey used to store the last used DRMToday request IDstatic final StringKey used to store the current playback statestatic final StringKey used to store the current playback URLstatic final StringKey used to store the last used variant IDstatic final StringKey used to store the castlabs SDK versionstatic final StringKey used to store the current video bitratestatic final StringKey used to store the current video dimensions
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddReporter(CrashReporter connection) Add a new reporterstatic voidAdds a log line to the crash contextstatic voidReport a caught exception to all registered reportersstatic voidSets a boolean value.static voidSets a double value.static voidSets an int value.static voidSets a string value.
- 
Field Details- 
KEY_URLKey used to store the current playback URL- See Also:
 
- 
KEY_DRM_URLKey used to store the DRM backend URL for the last request- See Also:
 
- 
KEY_OFFLINE_IDKey used to store the Offline ID in case offline key storage is enabled- See Also:
 
- 
KEY_REQUEST_IDKey used to store the last used DRMToday request ID- See Also:
 
- 
KEY_ASSET_IDKey used to store the last used asset ID- See Also:
 
- 
KEY_VARIANT_IDKey used to store the last used variant ID- See Also:
 
- 
KEY_DRMKey used to store the last used DRM type- See Also:
 
- 
KEY_AUDIO_DRMKey used to store the last used DRM type- See Also:
 
- 
KEY_DEVICE_SECURITY_LEVELKey used to store the last required security level- See Also:
 
- 
KEY_STATEKey used to store the current playback state- See Also:
 
- 
KEY_VERSIONKey used to store the castlabs SDK version- See Also:
 
- 
KEY_VIDEO_SIZEKey used to store the current video dimensions- See Also:
 
- 
KEY_VIDEO_BITRATEKey used to store the current video bitrate- See Also:
 
- 
KEY_AUDIO_BITRATEKey used to store the current audio bitrate- See Also:
 
- 
KEY_DISPLAY_SETTINGKey used to store the current display configuration- See Also:
 
- 
KEY_DISPLAY_COUNTKey used to store the current number of reported displays- See Also:
 
- 
KEY_PRESENTATION_DISPLAY_COUNTKey used to store the current number of reported presentation displays- See Also:
 
- 
KEY_DISPLAY_REMOTEKey used to store a boolean that indicates if the connected display is a remote display- See Also:
 
- 
KEY_DISPLAY_SECUREKey used to store a boolean that indicates if the connected display is a secure display- See Also:
 
- 
KEY_POSITIONKey used to store the current playback position. This will be updated at most with a resolution of 1 Second.- See Also:
 
 
- 
- 
Method Details- 
reportReport a caught exception to all registered reporters- Parameters:
- exception- the exception
 
- 
logAdds a log line to the crash context- Parameters:
- tag- The tag
- message- The log message
 
- 
setSets a string value. Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
- key- the key
- value- the value
 
- 
setSets an int value. Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
- key- the key
- value- the value
 
- 
setSets a double value. Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
- key- the key
- value- the value
 
- 
setSets a boolean value. Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
- key- the key
- value- the value
 
- 
addReporterAdd a new reporter- Parameters:
- connection- the reporter instance
 
 
-