Class ChildLockModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to child-lock state.
public sealed class ChildLockModule
- Inheritance
-
ChildLockModule
- Inherited Members
Properties
Enabled
Gets whether child lock is enabled.
public bool? Enabled { get; }
Property Value
- bool?
IsAvailable
Gets a value indicating whether child-lock state is currently available.
public bool IsAvailable { get; }
Property Value
State
Gets the latest normalized child-lock state.
public ChildLockState? State { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes child-lock-related state.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the device state has been refreshed.