io.github.zeroone3010.yahueapi.v2.HueEventSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yetanotherhueapi Show documentation
Show all versions of yetanotherhueapi Show documentation
A library for controlling Philips Hue lights.
The newest version!
package io.github.zeroone3010.yahueapi.v2;
/**
* Source of streaming events from the Hue Bridge.
*/
public interface HueEventSource extends AutoCloseable {
/**
* Closes the event stream. No more events will be received.
*/
@Override
void close();
/**
* Returns the state of this event stream.
* @return State of this event stream. Should be {@code ACTIVE} for this to work properly.
*/
HueEventStreamState getState();
}