{"schemaVersion":1,"title":"Kotlin · Dokka","url":"https://appgram.github.io/docsy/versions/current/fr/kotlin-sdk","markdownUrl":"https://appgram.github.io/docsy/format-md/versions/current/fr/kotlin-sdk","jsonUrl":"https://appgram.github.io/docsy/agent/pages/versions/current/fr/kotlin-sdk.json","version":"current","locale":"fr","markdown":"# Kotlin · Dokka\n\nReal Dokka HTML output from the checked-in kotlin fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.\n\n> Source: https://appgram.github.io/docsy/versions/current/fr/kotlin-sdk  \n> Language: kotlin  \n> Symbols: 8 across 4 categories\n\n## Categories\n\n- [Functions](#functions) — 5 items\n- [Classes](#classes) — 1 items\n- [Properties](#properties) — 1 items\n- [Enums](#enums) — 1 items\n\n## Functions\n\n### `greet`  <sub>function</sub>\n\nGreet a reader.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `String` | ✓ | Reader name. |\n\n**Returns** — `String`\n\n```kotlin\nfun greet(name: String): String\n```\n\n**Example**\n\n```kotlin\nGreeter().greet(\"Ada\")\n```\n\n---\n\n### `greetChecked`  <sub>function</sub>\n\nReject an empty reader name.\n\n**Errors**\n\n- `IllegalArgumentException` — When name is empty.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `String` | ✓ | Reader name. |\n\n**Returns** — `String`\n\n```kotlin\nfun greetChecked(name: String): String\n```\n\n---\n\n### `greetMany`  <sub>function</sub>\n\nGreet several readers in order.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `names` | `List<String>` | ✓ | Reader names. |\n\n| `separator` | `String` |  | Separator between greetings. |\n\n**Returns** — `String`\n\n```kotlin\nfun greetMany(names: List<String>, separator: String = \" / \"): String\n```\n\n**Example**\n\n```kotlin\nGreeter().greetMany(listOf(\"Ada\", \"Linus\"))\n```\n\n---\n\n### `valueOf`  <sub>function</sub>\n\nReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)\n\n**Errors**\n\n- `kotlin.IllegalArgumentException` — if this enum type has no constant with the specified name\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `value` | `String` | ✓ |  |\n\n**Returns** — `Mood`\n\n```kotlin\nfun valueOf(value: String): Mood\n```\n\n---\n\n### `values`  <sub>function</sub>\n\nReturns an array containing the constants of this enum type, in the order they're declared.\n\n**Returns** — `Array<Mood>`\n\n```kotlin\nfun values(): Array<Mood>\n```\n\n## Classes\n\n### `Greeter`  <sub>class</sub>\n\nBuild personalized greetings without network access.\n\n```kotlin\nclass Greeter\n```\n\n**Example**\n\n```kotlin\nval greeter = Greeter()\nprintln(greeter.greet(\"Docsy\"))\n```\n\n## Properties\n\n### `prefix`  <sub>property</sub>\n\nGreeting prefix used for future calls.\n\n```kotlin\nvar prefix: String\n```\n\n## Enums\n\n### `Mood`  <sub>enum</sub>\n\nSupported greeting moods.\n\n**Values** — `Friendly`, `Formal`\n\n```kotlin\nenum Mood : Enum<Mood>\n```\n"}