Creates a new instance of the profile client.
The state store object (usually from IExtensionApi.store)
Retrieves the value of a given profile feature/setting on a given profile.
The profile to retreive the value from.
The unique key for the profile feature/setting.
The default value to return if the feature does not exist or does not have a value.
Sets the value of a given profile feature/setting on a given profile.
The profile to set the value on.
The unique key for the profile feature/setting.
The value to set/update for the profile feature/setting.
Generated using TypeDoc
A simple wrapper class to assist with setting and retrieving profile features.
You will still need to register profile features using the usual
context.registerProfileFeature
syntax, but you can then easily set/get that feature with aProfileClient
instance.If you are not familiar with how Vortex handles profile features, be very careful. This can be a minefield.