In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in the text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " We will break the Result object returned from the function and catch it inside two objects named result and status."
A block of code is set as follows:
var createTweet: Button? = null
createTweet.setOnClickListener({
// Do button click operation
})
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
fun ViewGroup?.inflate(layoutId: Int, attachToRoot: Boolean) =
LayoutInflater.from(this?.context).inflate(layoutId, this,
attachToRoot)
Any command-line input or output is written as follows:
npm init
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Create a new project in IntelliJ, select Gradle and add the dependencies related to Spring Boot and Kotlin."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.