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 methods |
abstract void |
Called when a message is received on the registered channel.
|
Public methods
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\n[Kotlin](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionConnectionReceiver \"View this page in Kotlin\") \\|Java\n\n\n```\n@RequiresApi(value = 26) interface SessionConnectionReceiver\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nReceiver callback for a [SessionRemoteConnection](/reference/com/google/ambient/crossdevice/sessions/SessionRemoteConnection).\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `abstract void` | [onMessageReceived](/reference/com/google/ambient/crossdevice/sessions/SessionConnectionReceiver#onMessageReceived(com.google.ambient.crossdevice.sessions.SessionParticipant,kotlin.ByteArray))`(` ` @`[NonNull](/reference/androidx/annotation/NonNull)` `[SessionParticipant](/reference/com/google/ambient/crossdevice/sessions/SessionParticipant)` participant,` ` @`[NonNull](/reference/androidx/annotation/NonNull)` byte[] payload` `)` Called when a message is received on the registered channel. |\n\nPublic methods\n--------------\n\n### onMessageReceived\n\n```\nabstract void onMessageReceived(\n @NonNull SessionParticipant participant,\n @NonNull byte[] payload\n)\n```\n\nCalled when a message is received on the registered channel."]]