Write a Test (Java)
The Appium team maintains an official client for the Java programming language. It is built on top of Selenium. You can also use this client in your Kotlin projects.
Follow the Add Appium java client to your test framework tutorial in order to connect the library to your test framework sources.
The Appium Java client has dedicated classes to support most of the official Appium drivers. For other drivers you could simply use the AppiumDriver class or build your custom derivatives from it. Check the Drivers Support article to learn more about the current driver class implementations.
Follow the Usage Examples article in order understand how to invoke Java client features from your test framework.