JniConnection

class JniConnection(scope: CoroutineScope, env: KsrpcEnvironment<JniSerialized>, nativeEnvironment: Long) : PacketChannelBase<JniSerialized>

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, env: KsrpcEnvironment<JniSerialized>, nativeEnvironmentFactory: NativeKsrpcEnvironmentFactory)
constructor(scope: CoroutineScope, env: KsrpcEnvironment<JniSerialized>, nativeEnvironment: Long)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val context: CoroutineContext
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun call(channelId: ChannelId, endpoint: String, data: CallData<JniSerialized>): CallData<JniSerialized>
Link copied to clipboard
open suspend override fun close()
external fun close(nativeObject: Long, continuation: JavaJniContinuation<Int>)
open suspend override fun close(id: ChannelId)
Link copied to clipboard
Link copied to clipboard
external fun createConnection(scope: Long, env: Long): Long
Link copied to clipboard
open suspend override fun defaultChannel(): SerializedService<JniSerialized>
Link copied to clipboard
fun finalize()
external fun finalize(nativeObject: Long, nativeEnvironment: Long)
Link copied to clipboard
Link copied to clipboard
open suspend override fun onClose(onClose: suspend () -> Unit)
Link copied to clipboard
suspend fun receive(): Packet<JniSerialized>
Link copied to clipboard
open suspend override fun receiveLocked(): Packet<JniSerialized>
Link copied to clipboard
open suspend override fun registerDefault(service: SerializedService<JniSerialized>)
Link copied to clipboard
open suspend override fun registerHost(service: SerializedService<JniSerialized>): ChannelId
Link copied to clipboard
suspend fun send(packet: Packet<JniSerialized>)
Link copied to clipboard
Link copied to clipboard
open suspend override fun sendLocked(packet: Packet<JniSerialized>)
Link copied to clipboard
external fun sendSerialized(nativeObject: Long, packet: JniSerialized, continuation: JavaJniContinuation<Int>)
Link copied to clipboard
open suspend override fun wrapChannel(channelId: ChannelId): SerializedService<JniSerialized>