Table of Contents

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

bool

State

Gets the latest normalized child-lock state.

public ChildLockState? State { get; }

Property Value

ChildLockState

Methods

UpdateAsync(CancellationToken)

Refreshes child-lock-related state.

public Task UpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token for the operation.

Returns

Task

A task that completes when the device state has been refreshed.