Security Icon
Displays an icon representing the security status of a channel. Clicking the icon shows a detailed help dialog.
Parameters
The current SecurityState to display.
The base content description for the icon, to which the specific state description will be appended. Defaults to a generic security icon description.
Optional lambda to be invoked when the icon is clicked, in addition to its primary action (showing a help dialog). This allows callers to inject custom side effects.
Overload for SecurityIcon that derives the SecurityState from boolean flags.
Parameters
Whether the channel uses a low entropy key.
Whether the channel has precise location enabled. Defaults to false.
Whether MQTT is enabled for the channel. Defaults to false.
The base content description for the icon.
Optional lambda to be invoked when the icon is clicked, in addition to its primary action (showing a help dialog). This allows callers to inject custom side effects.
Overload for SecurityIcon that takes a Channel object to determine its security state.
Parameters
The channel whose security status is to be displayed.
The base content description for the icon.
Optional lambda for external actions, invoked when the icon is clicked.
Overload for SecurityIcon that enables recomposition when making changes to the ChannelSettings.
Parameters
The base content description for the icon.
Optional lambda for external actions, invoked when the icon is clicked.
Overload for SecurityIcon that takes an AppOnlyProtos.ChannelSet and a channel index. If the channel at the given index is not found, nothing is rendered.
Parameters
The set of channels.
The index of the channel within the set.
The base content description for the icon.
Optional lambda for external actions, invoked when the icon is clicked.
Overload for SecurityIcon that takes an AppOnlyProtos.ChannelSet and a channel name. If a channel with the given name is not found, nothing is rendered. This overload optimizes lookup by name by memoizing a map of channel names to settings.
Parameters
The set of channels.
The name of the channel to find.
The base content description for the icon.
Optional lambda for external actions, invoked when the icon is clicked.