Stay organized with collections
Save and categorize content based on your preferences.
SessionConnectionReceiver
@RequiresApi(value = 26) interface SessionConnectionReceiver
Receiver callback for a SessionRemoteConnection
.
Summary
Public functions |
Unit |
Called when a message is received on the registered channel.
|
Public functions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SessionConnectionReceiver\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/ambient/crossdevice/sessions/SessionConnectionReceiver \"View this page in Java\")\n\n\n```\n@RequiresApi(value = 26) interface SessionConnectionReceiver\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nReceiver callback for a [SessionRemoteConnection](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionRemoteConnection).\n\nSummary\n-------\n\n| ### Public functions ||\n|---------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](/reference/kotlin/kotlin/Unit) | [onMessageReceived](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionConnectionReceiver#onMessageReceived(com.google.ambient.crossdevice.sessions.SessionParticipant,kotlin.ByteArray))`(participant: `[SessionParticipant](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionParticipant)`, payload: `[ByteArray](/reference/kotlin/kotlin/ByteArray)`)` Called when a message is received on the registered channel. |\n\nPublic functions\n----------------\n\n### onMessageReceived\n\n```\nfun onMessageReceived(participant: SessionParticipant, payload: ByteArray): Unit\n```\n\nCalled when a message is received on the registered channel."]]