-
- All Implemented Interfaces:
-
com.datadog.android.api.SdkCore,com.datadog.android.api.feature.FeatureSdkCore
public interface InternalSdkCore implements FeatureSdkCore
FOR INTERNAL USAGE ONLY. THIS INTERFACE CONTENT MAY CHANGE WITHOUT NOTICE.
-
-
Method Summary
Modifier and Type Method Description abstract UnitwriteLastViewEvent(ByteArray data)Writes current RUM view event to the dedicated file for the needs of NDK crash reporting. abstract UnitdeleteLastViewEvent()Deletes last RUM view event written. abstract UnitwriteLastFatalAnrSent(Long anrTimestamp)Writes timestamp of the last fatal ANR sent. abstract ExecutorServicegetPersistenceExecutorService()Get an executor service for persistence purposes. abstract List<FeatureScope>getAllFeatures()abstract DatadogContextgetDatadogContext()abstract NetworkInfogetNetworkInfo()Returns current state of network connection. abstract TrackingConsentgetTrackingConsent()Current tracking consent. abstract FilegetRootStorageDir()Root folder for the hosting SDK instance. abstract BooleangetIsDeveloperModeEnabled()Shows if core is running in developer mode (some settings are overwritten to simplify debugging during app development). abstract FirstPartyHostHeaderTypeResolvergetFirstPartyHostResolver()Returns an instance of FirstPartyHostHeaderTypeResolver associated with the current SDK instance. abstract JsonObjectgetLastViewEvent()Reads last known RUM view event stored. abstract LonggetLastFatalAnrSent()Reads information about last fatal ANR sent. abstract LonggetAppStartTimeNs()Provide the time the application started in nanoseconds from device boot, or our best guess if the actual start time is not available. abstract InternalLoggergetInternalLogger()Logger for the internal SDK purposes. abstract StringgetName()Name of the current SDK instance. abstract TimeInfogetTime()The current time (both device and server). abstract StringgetService()Name of the service (given during the SDK initialization, otherwise package name is used). -
Methods inherited from class com.datadog.android.core.InternalSdkCore
createScheduledExecutorService, createSingleThreadExecutorService, getFeature, getFeatureContext, registerFeature, removeContextUpdateReceiver, removeEventReceiver, setContextUpdateReceiver, setEventReceiver, updateFeatureContext -
Methods inherited from class com.datadog.android.api.feature.FeatureSdkCore
addUserProperties, clearAllData, isCoreActive, setTrackingConsent, setUserInfo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
writeLastViewEvent
@WorkerThread() abstract Unit writeLastViewEvent(ByteArray data)
Writes current RUM view event to the dedicated file for the needs of NDK crash reporting.
- Parameters:
data- Serialized RUM view event.
-
deleteLastViewEvent
@WorkerThread() abstract Unit deleteLastViewEvent()
Deletes last RUM view event written.
-
writeLastFatalAnrSent
@WorkerThread() abstract Unit writeLastFatalAnrSent(Long anrTimestamp)
Writes timestamp of the last fatal ANR sent.
-
getPersistenceExecutorService
@AnyThread() abstract ExecutorService getPersistenceExecutorService()
Get an executor service for persistence purposes.
-
getAllFeatures
abstract List<FeatureScope> getAllFeatures()
-
getDatadogContext
abstract DatadogContext getDatadogContext()
-
getNetworkInfo
abstract NetworkInfo getNetworkInfo()
Returns current state of network connection.
-
getTrackingConsent
abstract TrackingConsent getTrackingConsent()
Current tracking consent.
-
getRootStorageDir
abstract File getRootStorageDir()
Root folder for the hosting SDK instance.
-
getIsDeveloperModeEnabled
abstract Boolean getIsDeveloperModeEnabled()
Shows if core is running in developer mode (some settings are overwritten to simplify debugging during app development).
-
getFirstPartyHostResolver
abstract FirstPartyHostHeaderTypeResolver getFirstPartyHostResolver()
Returns an instance of FirstPartyHostHeaderTypeResolver associated with the current SDK instance.
-
getLastViewEvent
@WorkerThread() abstract JsonObject getLastViewEvent()
Reads last known RUM view event stored.
-
getLastFatalAnrSent
@WorkerThread() abstract Long getLastFatalAnrSent()
Reads information about last fatal ANR sent.
-
getAppStartTimeNs
abstract Long getAppStartTimeNs()
Provide the time the application started in nanoseconds from device boot, or our best guess if the actual start time is not available. Note: since the implementation may rely on System.nanoTime, this property can only be used to measure elapsed time and is not related to any other notion of system or wall-clock time. The value is the time since VM start.
-
getInternalLogger
abstract InternalLogger getInternalLogger()
Logger for the internal SDK purposes.
-
getService
abstract String getService()
Name of the service (given during the SDK initialization, otherwise package name is used).
-
-
-
-