Package com.amplitude.core

Types

Link copied to clipboard
open class Amplitude

Amplitude

This is the SDK instance class that contains all of the SDK functionality.

Many of the SDK functions return the SDK instance back, allowing you to chain multiple methods calls together.
Link copied to clipboard
open class Configuration @JvmOverloads constructor(apiKey: String, flushQueueSize: Int, flushIntervalMillis: Int, instanceName: String, optOut: Boolean, storageProvider: StorageProvider, loggerProvider: LoggerProvider, minIdLength: Int?, partnerId: String?, callback: EventCallBack?, flushMaxRetries: Int, useBatch: Boolean, serverZone: ServerZone, serverUrl: String?, plan: Plan?, ingestionMetadata: IngestionMetadata?, identifyBatchIntervalMillis: Long, identifyInterceptStorageProvider: StorageProvider)
Link copied to clipboard
object Constants
Link copied to clipboard
typealias EventCallBack = (BaseEvent, status: Int, message: String) -> Unit
Link copied to clipboard
interface LoggerProvider
Link copied to clipboard
enum ServerZone : Enum<ServerZone>
Link copied to clipboard
class State
Link copied to clipboard
interface Storage
Link copied to clipboard
interface StorageProvider

Functions

Link copied to clipboard
fun Amplitude(apiKey: String, configs: Configuration.() -> Unit): Amplitude

constructor function to build amplitude in dsl format with config options Usage: Amplitude("123") { this.flushQueueSize = 10 }