Add kotlin to examples
This commit is contained in:
parent
b6a483dc41
commit
5cca461115
@ -23,6 +23,7 @@ select.large { font-size: large; }
|
||||
<option>JavaScript</option>
|
||||
<option>Go</option>
|
||||
<option>Java</option>
|
||||
<option>Kotlin</option>
|
||||
<option>C#</option>
|
||||
<option>C++</option>
|
||||
<option>Swift</option>
|
||||
@ -165,6 +166,7 @@ function getSupportedOs(language) {
|
||||
case 'JavaScript':
|
||||
return ['Windows (Node.js)', 'Linux (Node.js)', 'macOS (Node.js)', 'FreeBSD (Node.js)', 'OpenBSD (Node.js)', 'NetBSD (Node.js)', 'Browser'];
|
||||
case 'Java':
|
||||
case 'Kotlin':
|
||||
return ['Windows', 'Linux', 'macOS', 'FreeBSD', 'OpenBSD', 'Android'];
|
||||
case 'C#':
|
||||
return ['Windows (through C++/CLI)', 'Universal Windows Platform (through C++/CX)', 'Windows (.Net Core)', 'Linux (.Net Core)', 'macOS (.Net Core)', 'FreeBSD (.Net Core)'];
|
||||
@ -182,6 +184,7 @@ function getExampleAnchor(language) {
|
||||
case 'JavaScript':
|
||||
case 'Go':
|
||||
case 'Java':
|
||||
case 'Kotlin':
|
||||
case 'Swift':
|
||||
case 'Objective-C':
|
||||
case 'Rust':
|
||||
@ -272,6 +275,7 @@ function getTarget(language, os) {
|
||||
case 'C++':
|
||||
return 'tdclient';
|
||||
case 'Java':
|
||||
case 'Kotlin':
|
||||
return 'JNI';
|
||||
default:
|
||||
return 'tdjson';
|
||||
|
@ -13,6 +13,7 @@ Choose your preferred programming language to see examples of usage and a detail
|
||||
- [JavaScript](#javascript)
|
||||
- [Go](#go)
|
||||
- [Java](#java)
|
||||
- [Kotlin](#kotlin)
|
||||
- [C#](#csharp)
|
||||
- [C++](#cxx)
|
||||
- [Swift](#swift)
|
||||
@ -86,6 +87,13 @@ To use TDLib to create Android Java applications, use our [prebuilt library for
|
||||
|
||||
You can also see [JTDLib](https://github.com/ErnyTech/JTDLib) for another example of Java wrapper for TDLib.
|
||||
|
||||
<a name="kotlin"></a>
|
||||
## Using TDLib in Kotlin projects
|
||||
|
||||
TDLib can be used from the Kotlin/JVM programming language through same way as in [JAVA](#java).
|
||||
|
||||
You can also use [ktd](https://github.com/whyoleg/ktd) library with kotlin specific bindings.
|
||||
|
||||
<a name="csharp"></a>
|
||||
## Using TDLib in C# projects
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user