/
UpdateLocalUserMetadataString (Unity)

UpdateLocalUserMetadataString (Unity)

public static void UpdateLocalUserMetadataString(string key, string value, Action<string> onSuccess = null, Action<string> onFailure = null)

- Description

Updates the local user’s metadata via key-value lookup. If the key does not exist, a new key-value pair is created.

 

For more information on user metadata, see INSERTPAGE for details.

- Sample

using CavrnusSdk.API; using UnityEngine; public class ExampleScript: MonoBehaviour { public void Start() { CavrnusFunctionLibrary.AwaitAuthentication(authentication => { CavrnusFunctionLibrary.UpdateLocalUserMetadataString("nickname", "Rogue Leader"); }); } }

 

Related content

BindToLocalUserMetadataString (Unity)
BindToLocalUserMetadataString (Unity)
More like this
FetchLocalUserMetadata (Unity)
FetchLocalUserMetadata (Unity)
More like this
DeleteLocalUserMetadata (Unity)
DeleteLocalUserMetadata (Unity)
More like this
UpdateLocalUserMetadataJson (Unity)
UpdateLocalUserMetadataJson (Unity)
More like this
BindToLocalUserMetadataJson (Unity)
BindToLocalUserMetadataJson (Unity)
More like this
Get/BindUserName (Unity)
Get/BindUserName (Unity)
More like this