createChannel

fun GroupChannel.Companion.createChannel(params: GroupChannelCreateParams, handler: ResultHandler<GroupChannel>?)

Creates GroupChannel with GroupChannelCreateParams.

Since

4.15.0

Parameters

params

Params of channel. Refer to GroupChannelCreateParams.

handler

The handler to be invoked when the operation completes.


fun OpenChannel.Companion.createChannel(params: OpenChannelCreateParams, handler: ResultHandler<OpenChannel>)

Creates new OpenChannel with OpenChannelParams.

Since

4.15.0

Parameters

params

The params to create new channel.

handler

The handler to be invoked when the operation completes.


suspend fun GroupChannel.Companion.createChannel(params: GroupChannelCreateParams): GroupChannel

Deprecated

As of 4.17.0, replaced with awaitCreateChannel(params).

Replace with

awaitCreateChannel(params)

Creates GroupChannel with GroupChannelCreateParams.

Return

The created channel.

Since

4.15.0

Parameters

params

Params of channel. Refer to GroupChannelCreateParams.


suspend fun OpenChannel.Companion.createChannel(params: OpenChannelCreateParams): OpenChannel

Deprecated

As of 4.17.0, replaced with awaitCreateChannel(params).

Replace with

awaitCreateChannel(params)

Creates new OpenChannel with OpenChannelParams.

Return

The created channel.

Since

4.15.0

Parameters

params

The params to create new channel.