Builder

class Builder

Builder used to automatically parse and interpret the generated library data from the plugin.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): Libs

Build the Libs instance with the applied configuration.

withJson
Link copied to clipboard
fun withJson(stringData: String): Libs.Builder

Provide the generated library data as String

Extensions

withContext
Link copied to clipboard
fun Libs.Builder.withContext(ctx: Context): Libs.Builder

Auto discover the generated library definition data by the default name and location res/raw/aboutlibraries.json

withJson
Link copied to clipboard
fun Libs.Builder.withJson(byteArray: ByteArray): Libs.Builder

Attach the generated library definition data as ByteArray

fun Libs.Builder.withJson(ctx: Context, rawResId: Int): Libs.Builder

Attach the generated library definition data as resource file, with the given id.

fun Libs.Builder.withJson(byteArray: ByteArray): Libs.Builder

Attach the generated library definition data as ByteArray