Delete Data
Delete player's registered data.
Call Information
public void Delete (string storageKey, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
storageKey | Data key | string |
callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
string storageKey = "STORAGE_KEY";
plugin.Storage.Delete(storageKey, (status, message, jsonString, dictionary) =>
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "success"
}
Communication Result Information Details
Data Key | Description | Type |
---|---|---|
Status | Operation result | string |