A checklist allows you to post a subject to a channel. Channel participants can choose from the items you specify, and the results can be viewed by everyone in the channel.
Here is a sample of what a complete checklist implementation can look like:
The following example creates a checklist for a potluck.
Participants of the channel can listen for incoming checklist identifiers, which contain a checklistId we can use to get the checklist object from the server.
Get the checklist object from the server using a checklistId (checklist identifier).
The checklist object contains all the information needed to display a checklist in your user interface.
Participants can choose one or more items.
Channel participants can listen for incoming CheckListSelection to display them in the user interface.
If the current user has voted in the checklist, the selected CheckListOption(s) can be obtained from the checklist object.
There are several ways to obtain checklist results.
Get the latest checklist object from the server using a checklistId:
Use a listener to update existing checklist objects from the incoming checklistSelection. This method saves a round-trip to the server, updating the checklist results dynamically when a checklistSelection is received.