create

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

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.


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.