Java/Kotlin
Last updated
import io.hackle.sdk.HackleClient
import io.hackle.sdk.HackleClients
// Replace YOUR_SERVER_SDK_KEY with the SDK Key.
val hackleClient = Hackle.client(YOUR_SERVER_SDK_KEY)import io.hackle.sdk.HackleClient
import io.hackle.sdk.HackleClients
// Replace YOUR_SERVER_SDK_KEY with the SDK Key.
HackleClient hackleClient = HackleClients.create(YOUR_SERVER_SDK_KEY);import io.hackle.sdk.HackleClient
hackleClient.close()import io.hackle.sdk.HackleClient
hackleClient.close();import io.hackle.sdk.HackleClient
class CustomHackleClient(private val hackleClient: HackleClient): AutoCloseable {
override fun close() {
hackleClient.close()
}
}import io.hackle.sdk.HackleClient
public class CustomHackleClient implements AutoCloseable {
private final HackleClient hackleClient;
public CustomHackleClient(HackleClient hackleClient) {
this.hackleClient = hackleClient;
}
@Override
public void close() throws Exception {
hackleClient.close();
}
}