Class ConfigKeyProtectedString
- Namespace
- MonkeyLoader.Resonite.Configuration
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Implements a custom data feed items component that will apply a MaskPattern to the string input for the ConfigKey.
public sealed class ConfigKeyProtectedString : ConfigKeyCustomDataFeedItems<string>, IConfigKeyCustomDataFeedItems<string>, IConfigKeyComponent<IDefiningConfigKey<string>>, IComponent<IDefiningConfigKey<string>>, ICustomDataFeedItems
- Inheritance
-
ConfigKeyProtectedString
- Implements
- Inherited Members
Remarks
Beware, that only the first of these components will be used, should a config key have multiple.
Constructors
ConfigKeyProtectedString(string)
Creates a new instance of this custom data feed items component
that will apply the given maskPattern to the string input for the
ConfigKey.
public ConfigKeyProtectedString(string maskPattern = "*")
Parameters
maskPatternstringThe mask pattern that will be applied to the string input for the ConfigKey.
Note that while FrooxEngine.UIX.Text.MaskPattern is a string, the content is always masked by repeating the first character only.
Properties
MaskPattern
Gets the mask pattern that will be applied to the string input for the ConfigKey.
public string MaskPattern { get; }
Property Value
Remarks
Note that while FrooxEngine.UIX.Text.MaskPattern is a string, the content is always masked by repeating the first character only.
Methods
Enumerate(IReadOnlyList<string>, IReadOnlyList<string>, string?, object?)
Enumerates the FrooxEngine.DataFeedItems that represent this object.
public override IAsyncEnumerable<DataFeedItem> Enumerate(IReadOnlyList<string> path, IReadOnlyList<string> groupKeys, string? searchPhrase, object? viewData)
Parameters
pathIReadOnlyList<string>The path for this enumeration request.
groupKeysIReadOnlyList<string>The group keys for this enumeration request.
searchPhrasestringThe search phrase for this enumeration request.
viewDataobjectThe custom view data for this enumeration request.
Returns
- IAsyncEnumerable<DataFeedItem>
An async sequence of FrooxEngine.DataFeedItems that represents this object.