Android SDK
At a glance
Group
Function
Initialization
class Amply(val config: AmplyConfig, val application: Application)
class Amply(val config: AmplyConfig, val application: Application)Name
Type
Required
Description
class AmplyConfig
class AmplyConfigName
Type
Required
Description
fun amplyConfig(initializer: AmplyConfigBuilder.() -> Unit): AmplyConfig
fun amplyConfig(initializer: AmplyConfigBuilder.() -> Unit): AmplyConfigEvent tracking
fun track(event: String, properties: Map<String, Any> = emptyMap())
fun track(event: String, properties: Map<String, Any> = emptyMap())Name
Type
Required
Description
Gating
suspend fun trackGated(event: String, properties: Map<String, Any> = emptyMap()): GateDecision
suspend fun trackGated(event: String, properties: Map<String, Any> = emptyMap()): GateDecisionName
Type
Required
Description
fun registerGate(baseUrl: String, presenter: CampaignPresenter, onAbort: AbortPolicy = AbortPolicy.Cancel, timeoutMs: Long = 60_000)
fun registerGate(baseUrl: String, presenter: CampaignPresenter, onAbort: AbortPolicy = AbortPolicy.Cancel, timeoutMs: Long = 60_000)Name
Type
Required
Description
sealed class GateDecision
sealed class GateDecisionVariant
Meaning
enum class ProceedReason
enum class ProceedReasonenum class AbortPolicy
enum class AbortPolicyinterface CampaignPresenter
interface CampaignPresenterCampaignResolution / enum class CampaignResult
CampaignResolution / enum class CampaignResultUser attributes
fun setUserId(userId: String?)
fun setUserId(userId: String?)Name
Type
Required
Description
fun setCustomProperty(key: String, value: Any)
fun setCustomProperty(key: String, value: Any)Name
Type
Required
Description
fun setCustomProperties(properties: Map<String, Any>)
fun setCustomProperties(properties: Map<String, Any>)Name
Type
Required
Description
suspend fun getCustomProperty(key: String): Any?
suspend fun getCustomProperty(key: String): Any?Name
Type
Required
Description
fun removeCustomProperty(key: String)
fun removeCustomProperty(key: String)Name
Type
Required
Description
fun clearCustomProperties()
fun clearCustomProperties()Deeplinks
fun registerDeepLinkListener(listener: DeepLinkListener)
fun registerDeepLinkListener(listener: DeepLinkListener)Name
Type
Required
Description
interface DeepLinkListener
interface DeepLinkListenerSystem events
fun setSystemEventsListener(listener: SystemEventsListener)
fun setSystemEventsListener(listener: SystemEventsListener)Name
Type
Required
Description
interface SystemEventsListener
interface SystemEventsListenerData inspection
suspend fun getRecentEvents(limit: Int = 30): List<EventInterface>
suspend fun getRecentEvents(limit: Int = 30): List<EventInterface>Name
Type
Required
Description
suspend fun getDataSetSnapshot(type: DataSetType): Map<String, Any>
suspend fun getDataSetSnapshot(type: DataSetType): Map<String, Any>Name
Type
Required
Description
sealed class DataSetType
sealed class DataSetTypeVariant
Value
Contents
Logging
fun setLogLevel(level: LogLevel)
fun setLogLevel(level: LogLevel)Name
Type
Required
Description
fun setLogLevel(level: String?)
fun setLogLevel(level: String?)fun getLogLevel(): LogLevel
fun getLogLevel(): LogLevelfun setLogListener(listener: LogListener?)
fun setLogListener(listener: LogListener?)Name
Type
Required
Description
interface LogListener
interface LogListenerdata class LogEntry
data class LogEntryField
Type
Description
Types
enum class LogLevel
enum class LogLevelValue
Int level
class DateTimeValue(val epochMillis: Long)
class DateTimeValue(val epochMillis: Long)interface EventInterface
interface EventInterfaceField
Type
Description
System event names
Constant
Value
When it fires
Related
Last updated