Package org.jivesoftware.smackx.spoiler
package org.jivesoftware.smackx.spoiler
Smack's API for XEP-0382: Spoiler Messages, that can be used to indicate that
the body of a message is a spoiler and should be displayed as such.
Usage
Invoke SpoilerManager.startAnnounceSupport()
to announce support for
spoiler messages.
Add spoilers to messages via
SpoilerElement.addSpoiler(Message)
,
SpoilerElement.addSpoiler(Message, String)
,
or
SpoilerElement.addSpoiler(Message, String, String)
.
To get spoilers use
SpoilerElement.getSpoilers(Message)
.
- See Also: