getLong

abstract fun getLong(key: String): Single<TealiumResult<Long?>>

Retrieves a Long value at the given key.

The callback will receive the Long value or null if the value was either not a Number or not present in the DataLayer. The result will be received on the Tealium thread.

Return

A Single which can be used to subscribe a block of code to receive the result

Parameters

key

The key to retrieve the value from