public static class

SnapshotConfig.Builder

extends Object
java.lang.Object
   ↳ com.tencent.navix.api.config.SnapshotConfig.Builder

Summary

Public Constructors
Builder(SnapshotConfig config)
Public Methods
SnapshotConfig build()
SnapshotConfig.Builder setCornerShape(SnapshotConfig.BitmapCornerShape cornerShape)
设置截图角形状
SnapshotConfig.Builder setFormat(Bitmap.CompressFormat format)
设置截图格式,默认JPEG
SnapshotConfig.Builder setHeight(int height)
设置截图高度(pixel)
SnapshotConfig.Builder setInterval(int interval)
设置截图间隔[1s-10s],默认5s
SnapshotConfig.Builder setQuality(int quality)
设置截图质量[0-100],默认90
SnapshotConfig.Builder setWidth(int width)
设置截图宽度(pixel)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder (SnapshotConfig config)

Public Methods

public SnapshotConfig build ()

public SnapshotConfig.Builder setCornerShape (SnapshotConfig.BitmapCornerShape cornerShape)

设置截图角形状

public SnapshotConfig.Builder setFormat (Bitmap.CompressFormat format)

设置截图格式,默认JPEG

public SnapshotConfig.Builder setHeight (int height)

设置截图高度(pixel)

public SnapshotConfig.Builder setInterval (int interval)

设置截图间隔[1s-10s],默认5s

public SnapshotConfig.Builder setQuality (int quality)

设置截图质量[0-100],默认90

Parameters
quality 必须在0-100之间,数字越大,质量越好 PNG格式忽略该参数

public SnapshotConfig.Builder setWidth (int width)

设置截图宽度(pixel)