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
value
is 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
path
is the path of the key to update, using thefoo/bar/.../key
notation. When thepath
does not contain any/
(slash) character, it corresponds to the name of a key at the top-level of the profile.The
value
if the new value for the key at the givenpath
. When thevalue
is eithernil
orNSNull()
, 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?)