Parameters
From Required
Go to text ā
// This is a required parameter
@Parameters(index = "0", description = ["The lookup query"])
lateinit var query: String
From Optional
Go to text ā
// This is an optional parameter
@Parameters(index = "0", arity = "0..1", description = ["The optional lookup query"])
var query2: String? = null
Notes
- The arity attribute specifies the number of arguments that the parameter can take. For an optional parameter, you can set arity = "0..1", which means the parameter can take either 0 or 1 argument.
Children
Backlinks