Package 

Class Poll


  • 
    public final class Poll
    
                        

    Class representing a poll. id and title will always be given, but details field will be optional according to the settings to reduce payload. For example, if SendBird.Options.setIncludePollDetails is set to false (default false), all messages will not contain poll details and poll details should be explicitly retrieved by calling Poll.get. This applies to query as well. You can control query behaviour by setting appropriate flags, for example, BaseMessageListParams.setIncludePollDetails. See details field javadoc for further details.

    A poll instance can be created using Poll.create and updated using Poll.update with PollParams class. A poll can be attached to a message using UserMessageParams.setPollId.

    since 3.0.171