API reference

HorizonPlatformBridge

Updated: Jun 23, 2025

HorizonPlatformBridge

interface HorizonPlatformBridge

Functions

NameSummary
getGlobalSessionId
abstract fun getGlobalSessionId(): Long⁠
getMessageCount
abstract fun getMessageCount(sessionId: Long⁠): Int⁠
logEvent
abstract fun logEvent(eventType: String⁠, eventDataString: String⁠)
makeRequest
abstract fun makeRequest(moduleName: String⁠, requestName: String⁠, version: Int⁠, requestData: String⁠, cookie: Int⁠): Long⁠
makeSession
abstract fun makeSession(moduleName: String⁠, requestName: String⁠, version: Int⁠, requestData: String⁠, cookie: Int⁠): Long⁠
popMessage
abstract fun popMessage(sessionId: Long⁠, yield: Boolean⁠): Message
setup
abstract fun setup(appId: String⁠)
stopSession
abstract fun stopSession(sessionId: Long⁠)
tearDown
abstract fun tearDown()