Package io.github.zeroone3010.yahueapi
Class Hue.HueBridgeConnectionBuilder
java.lang.Object
io.github.zeroone3010.yahueapi.Hue.HueBridgeConnectionBuilder
- Enclosing class:
- Hue
public static class Hue.HueBridgeConnectionBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.String>initializeApiConnection(java.lang.String appName)Returns aCompletableFuturethat completes once you push the button on the Hue Bridge.
-
Method Details
-
initializeApiConnection
public java.util.concurrent.CompletableFuture<java.lang.String> initializeApiConnection(java.lang.String appName)Returns aCompletableFuturethat completes once you push the button on the Hue Bridge. Returns an API key that you should use for any subsequent calls to the Bridge API.- Parameters:
appName- The name of your application.- Returns:
- A
CompletableFuturewith an API key for your application. You should store this key for future usage. - Since:
- 1.0.0
-