InternalSdkCore - DataDog/dd-sdk-android GitHub Wiki

interface InternalSdkCore : FeatureSdkCore

FOR INTERNAL USAGE ONLY. THIS INTERFACE CONTENT MAY CHANGE WITHOUT NOTICE.

Properties

appStartTimeNs

abstract val appStartTimeNs: Long

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.

firstPartyHostResolver

abstract val firstPartyHostResolver: FirstPartyHostHeaderTypeResolver

Returns an instance of FirstPartyHostHeaderTypeResolver associated with the current SDK instance.

isDeveloperModeEnabled

abstract val isDeveloperModeEnabled: Boolean

Shows if core is running in developer mode (some settings are overwritten to simplify debugging during app development).

lastFatalAnrSent

@get:WorkerThread

abstract val lastFatalAnrSent: Long?

Reads information about last fatal ANR sent.

lastViewEvent

@get:WorkerThread

abstract val lastViewEvent: JsonObject?

Reads last known RUM view event stored.

networkInfo

abstract val networkInfo: NetworkInfo

Returns current state of network connection.

rootStorageDir

abstract val rootStorageDir: File?

Root folder for the hosting SDK instance.

trackingConsent

abstract val trackingConsent: TrackingConsent

Current tracking consent.

Functions

deleteLastViewEvent

@WorkerThread

abstract fun deleteLastViewEvent()

Deletes last RUM view event written.

getAllFeatures

abstract fun getAllFeatures(): List<FeatureScope>

Return

all the registered features.

getDatadogContext

abstract fun getDatadogContext(): DatadogContext?

Return

the current DatadogContext, or null

getPersistenceExecutorService

@AnyThread

abstract fun getPersistenceExecutorService(): ExecutorService

Get an executor service for persistence purposes.

Return

the persistence executor to use for this SDK

writeLastFatalAnrSent

@WorkerThread

abstract fun writeLastFatalAnrSent(anrTimestamp: Long)

Writes timestamp of the last fatal ANR sent.

writeLastViewEvent

@WorkerThread

abstract fun writeLastViewEvent(data: ByteArray)

Writes current RUM view event to the dedicated file for the needs of NDK crash reporting.

Parameters
data Serialized RUM view event.