BridgeDiscoveryRepo class
This is the way to communicate with Flutter Hue Bridge services.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
discoverBridges(
{Directory? savedBridgesDir, bool writeToLocal = true, String decrypter(String ciphertext)?}) → Future< List< String> > - Searches the network for Philips Hue bridges.
-
fetchSavedBridges(
{String decrypter(String ciphertext)?, Directory? directory}) → Future< List< Bridge> > - Fetch all of the bridges already saved to the user's device.
-
firstContact(
{required String bridgeIpAddr, Directory? savedBridgesDir, bool writeToLocal = true, DiscoveryTimeoutController? controller, String encrypter(String plaintext)?}) → Future< Bridge?> - Initiates the first contact between this device and the given bridge.
-
remoteAuthRequest(
{required String clientId, required String redirectUri, String? deviceName, String? state, String encrypter(String plaintext)?}) → Future< String> - This method allows the user to grant access to the app to allow it to connect to their bridge.
Constants
- stateSecretFile → const String
- The name of the file that stores the state secret.