Package-level declarations
Types
Link copied to clipboard
object ChunkCodec
Splits an arbitrarily-sized payload into 1..N BYTES chunks and reassembles them.
Link copied to clipboard
Thrown when Nearby reports a connection failure.
Link copied to clipboard
A connection handshake was initiated (either side) on endpointId.
Link copied to clipboard
data class ConnectionResult(val endpointId: String, val success: Boolean, val reason: String? = null)
Result of a connection attempt on endpointId.
Link copied to clipboard
data class DecodedChunk(val msgId: Int, val chunkIndex: Int, val chunkCount: Int, val chunkPayload: ByteArray)
A decoded (but not yet reassembled) chunk header + payload slice.
Link copied to clipboard
The endpoint endpointId has disconnected.
Link copied to clipboard
A discoverable endpoint appeared.
Link copied to clipboard
interface NearbyApi
Abstracts the slice of Google Nearby Connections needed by NearbyLoom.
Link copied to clipboard
Link copied to clipboard
A bytes payload from endpointId.