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");
});
}
}
Â