# Kotlin · Dokka

Real 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.

> Source: https://appgram.github.io/docsy/versions/current/fr/kotlin-sdk  
> Language: kotlin  
> Symbols: 8 across 4 categories

## Categories

- [Functions](#functions) — 5 items
- [Classes](#classes) — 1 items
- [Properties](#properties) — 1 items
- [Enums](#enums) — 1 items

## Functions

### `greet`  <sub>function</sub>

Greet a reader.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ | Reader name. |

**Returns** — `String`

```kotlin
fun greet(name: String): String
```

**Example**

```kotlin
Greeter().greet("Ada")
```

---

### `greetChecked`  <sub>function</sub>

Reject an empty reader name.

**Errors**

- `IllegalArgumentException` — When name is empty.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ | Reader name. |

**Returns** — `String`

```kotlin
fun greetChecked(name: String): String
```

---

### `greetMany`  <sub>function</sub>

Greet several readers in order.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `List<String>` | ✓ | Reader names. |

| `separator` | `String` |  | Separator between greetings. |

**Returns** — `String`

```kotlin
fun greetMany(names: List<String>, separator: String = " / "): String
```

**Example**

```kotlin
Greeter().greetMany(listOf("Ada", "Linus"))
```

---

### `valueOf`  <sub>function</sub>

Returns 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.)

**Errors**

- `kotlin.IllegalArgumentException` — if this enum type has no constant with the specified name

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `value` | `String` | ✓ |  |

**Returns** — `Mood`

```kotlin
fun valueOf(value: String): Mood
```

---

### `values`  <sub>function</sub>

Returns an array containing the constants of this enum type, in the order they're declared.

**Returns** — `Array<Mood>`

```kotlin
fun values(): Array<Mood>
```

## Classes

### `Greeter`  <sub>class</sub>

Build personalized greetings without network access.

```kotlin
class Greeter
```

**Example**

```kotlin
val greeter = Greeter()
println(greeter.greet("Docsy"))
```

## Properties

### `prefix`  <sub>property</sub>

Greeting prefix used for future calls.

```kotlin
var prefix: String
```

## Enums

### `Mood`  <sub>enum</sub>

Supported greeting moods.

**Values** — `Friendly`, `Formal`

```kotlin
enum Mood : Enum<Mood>
```
