| Name | Summary |
|---|---|
config | Optional configuration data to give the user more control over execution where possible |
| Name | Summary |
|---|---|
Companion | object Companion |
sealed class InitializationStage |
| Name | Summary |
|---|---|
logEvent | fun logEvent(eventType: String, eventData: LogEventData = LogEventData()) |
makeRequest | |
makeSession | fun makeSession(moduleName: String, requestName: String, version: Int, requestData: String?): Flow<Message> Make a session request, opening a flow which will emit one or more responses. The returned flow must be collected in order to send the session request, and will stop if the collecting scope is cancelled. |
| Name | Summary |
|---|---|
instance | val instance: HorizonServiceConnection Acquire a reference to the Horizon Platform instance, which can be used to make raw requests and sessions. You probably shouldn’t ever need to use this. |
| Name | Summary |
|---|---|
connect | fun connect(applicationId: String, scope: CoroutineScope = CoroutineScope(Dispatchers.Unconfined), config: HorizonPlatformConfig = HorizonPlatformConfig()) Initialize the Horizon Platform. This method must be called before any other service methods can be executed. |