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 a CompletableFuture that completes once you push the button on the Hue Bridge.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • initializeApiConnection

      public java.util.concurrent.CompletableFuture<java.lang.String> initializeApiConnection​(java.lang.String appName)
      Returns a CompletableFuture that 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 CompletableFuture with an API key for your application. You should store this key for future usage.
      Since:
      1.0.0