ProfileOperation
public enum ProfileOperation
A value representing an operation on the user profile.
-
An operation that clears the profile.
Declaration
Swift
case clear -
An operation that sets the profile.
The
valueis the new value of the whole profile as a JSON dictionary.Declaration
Swift
case set(value: [String : Any]) -
An operation that sets the value of a key of the profile.
The
pathis the path of the key to update, using thefoo/bar/.../keynotation. When thepathdoes not contain any/(slash) character, it corresponds to the name of a key at the top-level of the profile.The
valueif the new value for the key at the givenpath. When thevalueis eithernilorNSNull(), it clears the value of the key. When a key is cleared, it does not appear in the profile anymore.Declaration
Swift
case update(path: String, value: Any?)