Builder
class Builder
kotlin.Any | |
↳ | android.graphics.pdf.RenderParams.Builder |
Builder for constructing RenderParams
.
Summary
Public constructors | |
---|---|
Create a builder for constructing a |
Public methods | |
---|---|
RenderParams |
build() Builds the |
RenderParams.Builder |
setRenderFlags(renderFlags: Int) Sets the state of the render flag. |
RenderParams.Builder |
setRenderFlags(renderFlags: Int, mask: Int) Sets the state of the render flag specified by the mask. |
Public constructors
Builder
Builder(renderMode: Int)
Create a builder for constructing a RenderParams
object with the render mode.
Parameters | |
---|---|
renderMode |
Int: render mode for the content. Value is android.graphics.pdf.RenderParams#RENDER_MODE_FOR_DISPLAY , or android.graphics.pdf.RenderParams#RENDER_MODE_FOR_PRINT |
Public methods
build
fun build(): RenderParams
Builds the RenderParams
after the optional values has been set.
Return | |
---|---|
RenderParams |
the newly constructed RenderParams object This value cannot be null . |
setRenderFlags
fun setRenderFlags(renderFlags: Int): RenderParams.Builder
Sets the state of the render flag. See setRenderFlags(int,int)
for usage information.
Parameters | |
---|---|
renderFlags |
Int: the bitmask of the render flag should be enabled, or 0 to disable all flags. Value is either 0 or a combination of android.graphics.pdf.RenderParams#FLAG_RENDER_TEXT_ANNOTATIONS , and android.graphics.pdf.RenderParams#FLAG_RENDER_HIGHLIGHT_ANNOTATIONS |
Return | |
---|---|
RenderParams.Builder |
This value cannot be null . |
setRenderFlags
fun setRenderFlags(
renderFlags: Int,
mask: Int
): RenderParams.Builder
Sets the state of the render flag specified by the mask. To change all render flags at once, see setRenderFlags(int)
.
When a render flag is enabled, it will be displayed on the updated android.graphics.Bitmap
of the renderer.
Multiple indicator types may be enabled or disabled by passing the logical OR of the desired flags. If multiple flags are specified, they will all be set to the same enabled state.
For example, to enable the render text annotations flag: setRenderFlags(FLAG_RENDER_TEXT_ANNOTATIONS, FLAG_RENDER_TEXT_ANNOTATIONS)
To disable the render text annotations flag: setRenderFlags(0, FLAG_RENDER_TEXT_ANNOTATIONS)
Parameters | |
---|---|
renderFlags |
Int: the render flag, or the logical OR of multiple render flags. One or more of:
Value is either 0 or a combination of android.graphics.pdf.RenderParams#FLAG_RENDER_TEXT_ANNOTATIONS , and android.graphics.pdf.RenderParams#FLAG_RENDER_HIGHLIGHT_ANNOTATIONS |
mask |
Int: Value is either 0 or a combination of android.graphics.pdf.RenderParams#FLAG_RENDER_TEXT_ANNOTATIONS , and android.graphics.pdf.RenderParams#FLAG_RENDER_HIGHLIGHT_ANNOTATIONS |
Return | |
---|---|
RenderParams.Builder |
This value cannot be null . |
See Also