AnnouncementParametersBuilder
class AnnouncementParametersBuilder @JvmOverloads constructor(prototype: AnnouncementParameters = AnnouncementParameters.DEFAULT)
Content copied to clipboard
AnnouncementParameters 的构建器. 可以构建一个 AnnouncementParameters 实例.
获得实例
直接构造实例: new AnnouncementParametersBuilder()
或者从已有的公告中获取 AnnouncementParameters.builder.
使用
在 Kotlin 使用
val parameters = buildAnnouncementParameters {
sendToNewMember = true
// ...
}
Content copied to clipboard
在 Java 使用
AnnouncementParameters parameters = new AnnouncementParametersBuilder()
.sendToNewMember(true)
.pinned(true)
.build();
Content copied to clipboard
Since
2.7
See also
Constructors
Link copied to clipboard
fun AnnouncementParametersBuilder(prototype: AnnouncementParameters = AnnouncementParameters.DEFAULT)
Content copied to clipboard
Functions
Link copied to clipboard
使用当前参数构造 AnnouncementParameters.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requireConfirmation(requireConfirmation: Boolean): AnnouncementParametersBuilder
Content copied to clipboard
Link copied to clipboard
fun sendToNewMember(sendToNewMember: Boolean): AnnouncementParametersBuilder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Link copied to clipboard