Builder

class Builder

Image 构建器.

示例:

Builder builder = Image.Builder.newBuilder("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.jpg")
builder.setSize(123);
builder.setType(ImageType.PNG);

Image image = builder.build();

Since

2.9.0

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun build(): Image

使用当前参数构造 Image.

Properties

Link copied to clipboard
var height: Int = 0
Link copied to clipboard
var imageId: String
Link copied to clipboard
var isEmoji: Boolean = false
Link copied to clipboard
var size: Long = 0

图片大小字节数. 如果不提供该属性, 将无法 Image.Key.isUploaded

Link copied to clipboard
var type: ImageType
Link copied to clipboard
var width: Int = 0