create

fun Poll.Companion.create(params: PollCreateParams, handler: ResultHandler<Poll>?)

Builds Poll instance with given params instance. Once created successfully, a non-null Poll instance will be passed to the handler.

Since

4.15.2

Parameters

params

The parameters to create a poll.

handler

The handler to receive the result.


suspend fun Poll.Companion.create(params: PollCreateParams): Poll

Deprecated

As of 4.17.0, replaced with awaitCreate(params).

Replace with

awaitCreate(params)

Builds Poll instance with given params instance. Once created successfully, Poll instance will be returned.

Return

Poll instance.

Since

4.15.2

Parameters

params

The parameters to create a poll.